Archive of Mr Excel Message Board
Back to Excel VBA archive index
Back to archive home
Auto answer a Message boxPosted by Phil Ridley on January 29, 2002 7:18 PM
The company I work for has an annoying document management system that ties into excel. When you try to save a document that has not been profiled by this system, Excel displays a message box asking if you really want to save it without profiling it.
How can I auto answer YES to this message box in a VB macro ?
|Check out our Excel VBA Resources
Re: Auto answer a Message boxPosted by Juan Pablo G. on January 29, 2002 9:30 PM
If the default Excel uses is YES, then use
Application.DisplayAlerts = False
at the beggining, and restore it to True at the end.
Juan Pablo G.
This archive is from the original message board at www.MrExcel.com.
All contents © 1998-2004 MrExcel.com.
Visit our online store
to buy searchable CD's with thousands of VBA and Excel answers.
Microsoft Excel is a registered trademark of the Microsoft Corporation.
MrExcel is a registered trademark of Tickling Keys, Inc.