Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SendKeys Problem

Status
Not open for further replies.

Dimmer

MIS
Sep 18, 2001
8
CA
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top