View Full Version : [SOLVED:] New to this Board....looking for some macro help
cmefly
01-14-2005, 12:11 PM
Hi
After running the following Macro twice, I get the message: "do you want to replace the file?"...
how do i alter the following so that it just saves without asking questions of replacing....?
sub saving ()
ThisWorkbook.SaveAs ("c:\Datafetcher.xls")
end sub
cmefly
Ken Puls
01-14-2005, 12:16 PM
Hi,
Try this:
sub saving ()
application.displayalerts = false
ThisWorkbook.SaveAs ("c:\Datafetcher.xls")
application.displayalerts = true
end sub
HTH,
cmefly
01-14-2005, 12:17 PM
Thanks Ken....works like a charm! :)
Ken Puls
01-14-2005, 12:18 PM
Oh, and Cmefly,
Welcome to VBAX! :)
I've edited your post above to use the VBA tags designed by our very own Mark007. See how they make your code look? You can try it out when your posting your next question. (Just click the green & white VBA box in the posting screen.)
Cheers!
cmefly
01-14-2005, 12:24 PM
very nice...i'll give a shot on my next question...
Zack Barresse
01-14-2005, 04:13 PM
Welcome cmefly! And congrats on getting married soon! :yes
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.