Hi all!! Suppressing the "Do you want to save changes"

B

Bony Pony

message when I haven't made any! I know I can open it
read-only but I was wondering if there is a way to switch
the alert off.

I have tried application.displayalerts = false but that
doesn't do it.

Any ideas anyone?
Thanks in advance!

Bony Pony
 
B

Bernie Deitrick

Bony,

You need to use a macro:

Sub CloseWithoutAlert()
Application.DisplayAlerts = False
ActiveWorkbook.Close
Application.DisplayAlerts = True
End Sub

HTH,
Bernie
MS Excel MVP
 

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

Top