S
sw19mike
I have a Word 2002 template which has a routine to prevent the user from
saving the file, by removing Close, Save, Save as, and Exit menu items,
disabling the Save tool from the toolbar, and disabling the top-right 'X'
button in Word. It does this using the following code:
DeleteMenu GetSystemMenu(GetActiveWindow,False),6,1024
This works fine if I just double click the .dot to create a new file, but
when I open through automation, GetActiveWindow always returns 0 (zero), so
the X button is not disabled. Any ideas anyone?
saving the file, by removing Close, Save, Save as, and Exit menu items,
disabling the Save tool from the toolbar, and disabling the top-right 'X'
button in Word. It does this using the following code:
DeleteMenu GetSystemMenu(GetActiveWindow,False),6,1024
This works fine if I just double click the .dot to create a new file, but
when I open through automation, GetActiveWindow always returns 0 (zero), so
the X button is not disabled. Any ideas anyone?