skip dialog boxes when using save as in a macro


Posted by Christopher on January 15, 2002 7:15 AM

hello all. i just answered a few questions so i hope someone will answer this. how do you turn off the dialog boxes when you use save as in a macro. rather than asking me if i want to replace the current file i just want to do it.

any hints,

thanks christopher

Posted by Doug on January 15, 2002 7:37 AM

Try using something like this:

Application.DisplayAlerts=False
WB.SaveAs Filename:=Myfile.xls
Application.DisplayAlerts=True.


Hope that helps.



Posted by christopher on January 15, 2002 8:02 AM

thanks. works like a dream