Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

automation in Excel

Status
Not open for further replies.

Learning123

Programmer
May 12, 2002
29
US
Hi Everyone!
I'm writing a Macro to save a Excel file and overwrite the existing file. I've managed to trigger the save command, but unfortunately a msgbox comes out a ask me if I want to overwrite. Is there a write in VB to tell in to always overwrite? As always thanks a lot for the help!!

andy
 
I don't know VBA, but... couldn't you just de-select the "Alert before overwriting cells" option in the tools\options of Excel?
 
Hi,
Sorry, I meant overwriting the existing file. I found out it's similar. It's Application.DisplayAlert = False. Thanks.

Andy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top