Inhibit 'Save Changes'

  • Thread starter Thread starter kirkm
  • Start date Start date
K

kirkm

A project I've nearly finished finally just about everything required
but when you close it Excel asks 'Do you want to save the changes you
made to....' irrespective of whether any changes have been made
or not.

Can I not show this message? Or, even better, only show it when
there have been changes?

Thanks - kirk
 
You can suppress that message with:
Application.DisplayAlerts = False
right before the code to Close the workbook.

I'm sure there's a way to check for changes, but I have no idea how to
code for that ...

//ray
 
You can suppress that message with:
Application.DisplayAlerts = False
right before the code to Close the workbook.

I'm sure there's a way to check for changes, but I have no idea how to
code for that ...

Ray, I put that into

Private Sub Workbook_BeforeClose(Cancel As Boolean)

but it has no affect there and still brings up the prompt.

Was there where you meant it to go?

Thanks - Kirk
 

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

Back
Top