9 Mar 2008

Word commands

You can use an Auto macro (old fashioned Word if you can't use events), or hijack an existing Word command in 2 ways:
  • Create a subroutine in any module with the right name (AutoSave, AutoNew, etc, or FileSave, ...)
  • Create a module with the name you want with a module called Main that has the code.
Auto routines are:
  • AutoExec
  • AutoNew
  • AutoOpen
  • AutoClose
  • AutoExit

No comments: