Word 2003 Macro Runtime Error 5479

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Steve W. (anonymous_at_discussions.microsoft.com)
Date: 07/12/04


Date: Mon, 12 Jul 2004 09:01:57 -0700

I have a set of macros. During their running, one of the
acts preformed is copying strings stored in a table on one
document and pasting the strings into a second document.
When I am done with the first document (containing the
table) I issue a
ActiveWindow.Close
line of code.

Yes, it is the Active window. I use the
Windows(ID#).Activate line to switch between the two
documents.

I've had these macros running since Word98 and this has
always worked, but now with Word 2003 I get a
Runtime Error 5479
"Cannot Close Micorsoft Office Word because a dialog box
is open.
Click OK, Switch to Word and close the dialog box."

Needlees to say, there is no OK button, just an End and
Help, if running live.
And a added Debug button if in debug mode.
The Help button brings up nothing and the debug button
highlights the above mentioned 'ActiveWindow.Close"
line of code.

Anybody know what's going on here now? I can't find
anything in the knowledge base that seems to help.
Thanks,
Steve



Relevant Pages

  • Re: Using debug DirectX from MDX
    ... To get some useful output, you can go into the project properties, and ... This will get debug output from the core DirectX ... > bright idea to switch to the debug DX and watch the output window. ... > shows that managed directX is not installed. ...
    (microsoft.public.win32.programmer.directx.managed)
  • Re: RosAsm is a broken pile of crap
    ... I posted the wrong set of macros - shame on me. ... switch;switch off EAX, ... // indirect jump to the bottom of the case statement. ... emit a jmp instruction to skip over the ...
    (alt.lang.asm)
  • Re: any macro-like construct/technique/trick?
    ... I prefer my debug code be more conspicuous rather ... Preprocessor Macros and their ilk have always seemed like an awful ... Python is probably the wrong language for your problem. ...
    (comp.lang.python)
  • Re: document open wont run
    ... not to permit macros to run - this is an important aspect since it allows the ... document's Document_Openso that it announces its execution through a ... document is opened from within SAP. ... switch that may be preventing Document_Openfrom triggering; ...
    (microsoft.public.word.vba.general)
  • vs2005 express hangs
    ... I seem to have introduced a probem into my application wich cuases the IDE ... when I switch from debug to reease mode. ...
    (microsoft.public.dotnet.languages.csharp)