Nelviticus
09-10-2007, 08:15 AM
You can intercept Word commands by writing a function with the proper name, so to intercept File->Save you'd write a function called FileSave. Any time the user clicked the Save button or went to the File menu and clicked Save, your code would run instead of the default action.
Although Word 2007 has completely different menus to previous versions things like FileSave still work. However one important function has changed and I am desparate to find out what the new name is!
In previous versions you could intercept calls to Tools->Unprotect Document with a function called ToolsUnProtectDocument but this just doesn't work in Word 2007 :(
If anyone can figure out what a function should be called to intercept the new 'Stop Protection' button (and it's not StopProtection or ToolsStopProtection) I'd be very, very grateful!
Thanks
Although Word 2007 has completely different menus to previous versions things like FileSave still work. However one important function has changed and I am desparate to find out what the new name is!
In previous versions you could intercept calls to Tools->Unprotect Document with a function called ToolsUnProtectDocument but this just doesn't work in Word 2007 :(
If anyone can figure out what a function should be called to intercept the new 'Stop Protection' button (and it's not StopProtection or ToolsStopProtection) I'd be very, very grateful!
Thanks