Good morning
I have a need for a VBA macro to save a worksheet. However, EXCEL prompts for a YES/NO answer, the default of which is NO and I must answer YES to save the file. I have tried to use the Application.DisplayAlerts = FALSE statement prior to the save, but to no avail because, I believe, of the default answer. If this were a one-time execution, it would not be a problem - I could do it manually. But, it needs to happen several times within the course of a run which loops though many iterations.
How can I get my VBA macro to answer the prompt and save the file?
Thanks in advance.
Rick
I have a need for a VBA macro to save a worksheet. However, EXCEL prompts for a YES/NO answer, the default of which is NO and I must answer YES to save the file. I have tried to use the Application.DisplayAlerts = FALSE statement prior to the save, but to no avail because, I believe, of the default answer. If this were a one-time execution, it would not be a problem - I could do it manually. But, it needs to happen several times within the course of a run which loops though many iterations.
How can I get my VBA macro to answer the prompt and save the file?
Thanks in advance.
Rick