Why is there no wdDialogClose? (word 2003 ) (Solved!)

User avatar
ChrisGreaves
PlutoniumLounger
Posts: 15639
Joined: 24 Jan 2010, 23:23
Location: brings.slot.perky

Why is there no wdDialogClose? (word 2003 ) (Solved!)

Post by ChrisGreaves »

Or perhaps more appropriate "Where is the wdDialogClose?"

I am wandering around, trapping the File, Close user action with a FileClose macro and various events, including "App_DocumentBeforeClose" and "App_DocumentBeforeSave".
I can detect by code that the user elected to save the file, and I can detect that the user Canceled out of the dialog box, which, as I type, I realize is probably the wdDialogFileSaveAs dialog box.

In fact, now I think about it, for the life of me I can't imagine what I'd PUT in a Close dialog box. :blush:
There's nothing heavier than an empty water bottle

User avatar
ChrisGreaves
PlutoniumLounger
Posts: 15639
Joined: 24 Jan 2010, 23:23
Location: brings.slot.perky

Re: Why is there no wdDialogClose? (word 2003 ) (Solved!)

Post by ChrisGreaves »

ChrisGreaves wrote:Or perhaps more appropriate "Where is the wdDialogClose?"
This (attached) skeleton demonstrates our ability to trap a single user action – that of choosing File, Close from the Microsoft Word menu system – and determining whether the document’s file name should be preserved in a list of Most-Recently-Used files.

The trigger macro “FileClose” will be joined by CloseWindow, DocClose, FileCloseAll, FileCloseOrCloseAll, FileCloseOrExit, FileExit, FileOpen, FileSave, FileSaveAll and FileSaveAs.
You do not have the required permissions to view the files attached to this post.
There's nothing heavier than an empty water bottle