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 John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Application.AlertBeforeOverwriting = False 1

Status
Not open for further replies.

WaterSprite

Technical User
Mar 23, 2004
69
US
I tried to use the Application.AlertBeforeOverwriting = False in a macro, but still got the alert each time when it was time to save. What am I doing wrong?

Sub Macro4()
'
' Macro4 Macro
' Macro recorded 8/16/2006 by warren
'

Application.AlertBeforeOverwriting = False
ChDir "A:\"
ActiveWorkbook.SaveAs Filename:="A:\test.xls", FileFormat:=xlNormal, _
Password:="", WriteResPassword:="", ReadOnlyRecommended:=False, _
CreateBackup:=False
End Sub

thanks for your assistance
 
Try using application.displayalerts instead.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top