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!

Suppress confirmation messages in excel 1

Status
Not open for further replies.

Mack2

Instructor
Mar 12, 2003
336
US
I have a macro within excel. While running the macro confirmation messages come up like "Are you sure that you want to delete" etc. Is there a way that I can suppress these?
THANKS!
 
wrap the offending lines of code with this:

Application.DisplayAlerts = false
'Your code
Application.DisplayAlerts = true


[tt]_____
[blue]-John[/blue][/tt]
[tab][red]The plural of anecdote is not data[/red]

Help us help you. Please read FAQ181-2886 before posting.
 
WOW! You made that too easy. Thanks so much!

Cheers!
 
Happy to have helped!
[cheers]

[tt]_____
[blue]-John[/blue][/tt]
[tab][red]The plural of anecdote is not data[/red]

Help us help you. Please read FAQ181-2886 before posting.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top