Link to home
Start Free TrialLog in
Avatar of antonioking
antoniokingFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Excel 2010 VBA SaveAs No dialog/Prompt

I'm trying to my workbook using a macro, I don't want any prompts to show up.

I'm using the command...        
ActiveWorkbook.SaveAs Filename:=<FILEPATH>

Open in new window

However the save as dialog box is shown each time.

I've read about adding DisplayAlerts command before and after the saveas command
Application.DisplayAlerts = False
Application.DisplayAlerts = True

Open in new window

But the save as dialogue still keeps popping up!
ASKER CERTIFIED SOLUTION
Avatar of ScriptAddict
ScriptAddict
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
There is nothing in your code that would trigger a dialog unless your filename is missing or you are using a function to provide the file name.