Turning off System Messages

B

Bruce B

I have a line of code (excel 2000) that deletes a sheet. When it runs a
system message pops up and asks if I really want to delete the sheet.

Is there any way that I can turn this system message off?

Thanks!

- Bruce



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
J

John Wilson

Bruce,

Just prior to that line of code to delete the sheet:
Application.DisplayAlerts = False
and right after it
Application.DisplayAlerts = True

John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

turn off messagess 2
Worksheet_Delete event? 4
Data Form 1
Select Visible sheets 5
Excel in VB6 1
usage "AddressOf TimerProc" in Excel97 1
View only UserForm? 4
Group All Sheets in a workbook 1

Top