Hi
I'm working in Word and need to hide the msgbox that asks asks if you want to save when closing a doc that has been updated or that hasn't been saved yet.
I don't know what the dialog is called, so I'm trying to use SendKeys "{^ESC}" in a module called AutoClose() to prevent it from being displayed. However, SendKeys "{^ESC}", SendKeys "{ESC}" and a variety of others don't work.
Any suggestions on how to simulate the ESC key being pressed would be greatly appreciated.
Thanks
Brian
I'm working in Word and need to hide the msgbox that asks asks if you want to save when closing a doc that has been updated or that hasn't been saved yet.
I don't know what the dialog is called, so I'm trying to use SendKeys "{^ESC}" in a module called AutoClose() to prevent it from being displayed. However, SendKeys "{^ESC}", SendKeys "{ESC}" and a variety of others don't work.
Any suggestions on how to simulate the ESC key being pressed would be greatly appreciated.
Thanks
Brian