turn off 'save' prompt when closing Excel

D

Dawnyanne

hi there
Is there a way to 'turn off' the prompt "Do you want to save your changes?"
when you close excel? Many thanks for any help!

Dawnyanne
 
M

Mike H

Hi,

Alt+F11 to open VB editor. Double click this workook and paste this in:-


Private Sub Workbook_BeforeClose(Cancel As Boolean)
Me.Saved = True
End Sub


Mike
 
D

Dawnyanne

Hi Mike

Thank you so much!!

Mike H said:
Hi,

Alt+F11 to open VB editor. Double click this workook and paste this in:-


Private Sub Workbook_BeforeClose(Cancel As Boolean)
Me.Saved = True
End Sub


Mike
 

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