disabling a message box
Wrap your Save/SaveAs method with
Application.DisplayAlerts = False
'Save
Application.DisplayAlerts = True
In article ,
"timmulla" wrote:
I was wondering if anyone could help me with a macro I'm creating?
I'm trying to disable a message box "Do you want to save changes to
'Consolidated Programs import MONTHLY GL UPLOAD.txt" which pops up when my
macro is running. I want this to automatically default to yes each time the
macro is run. I also want the message box that says "'Consolidated Programs
import MONTHLY GL UPLOAD.txt already exists, do you want to replace it? To
default to yes as well.
Basically, I'm running a open workbook macro in one file to convert the
"Consolidated Programs import MONTHLY GL UPLOAD.xls" to a text file. The
message boxes are stopping the rest of my code from executing.
Any help would be appreciated.
Thanks,
Tim
|