Modify Word Command

  • Thread starter Cor van der Bliek
  • Start date
C

Cor van der Bliek

In Word(2007) it is possble to modify Word commands. This can be done with:
FileClose
FileCloseAll
FileSave
FileSaveAs

This way you can intercept Word command to change the nature of the command.

But how do you intercept the application close button (the upper right
cross) of Alt F4?
 
J

Jonathan West

Cor van der Bliek said:
In Word(2007) it is possble to modify Word commands. This can be done
with:
FileClose
FileCloseAll
FileSave
FileSaveAs

This way you can intercept Word command to change the nature of the
command.

But how do you intercept the application close button (the upper right
cross) of Alt F4?

FileExit (if you want to close the application and all open documents)
DocClose (if you want to close just the current editing window.
 
C

Cor van der Bliek

I tried this and no MsgBox appears when I leave the application using the
upper right red cross

Sub FileExit()
MsgBox "FileExit Macro"
End Sub

Sub DocClose()
MsgBox "DocClose Macro"
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top