Nelviticus
Programmer
We are in the process of upgrading from Office 2002 to Office 2007 and I am trying to get some of our old code to work with the new version.
In Office 2002 you could intercept Word commands by writing your own functions with the same name, so if you wrote a function called 'FileSaveAs' then anyone choosing 'Save As' from the 'File' menu would run your code instead of the built-in Word command.
Under Office 2007 these intercepts no longer work. I don't think the command names have changed because if you record a macro and go Office Button/Save As/Word Document it records it as ActiveDocument.SaveAs, which is exactly what Word 2002 used to do.
Does anyone know how to intercept commands in Word 2007?
Thanks
Nelviticus
In Office 2002 you could intercept Word commands by writing your own functions with the same name, so if you wrote a function called 'FileSaveAs' then anyone choosing 'Save As' from the 'File' menu would run your code instead of the built-in Word command.
Under Office 2007 these intercepts no longer work. I don't think the command names have changed because if you record a macro and go Office Button/Save As/Word Document it records it as ActiveDocument.SaveAs, which is exactly what Word 2002 used to do.
Does anyone know how to intercept commands in Word 2007?
Thanks
Nelviticus