Is it possible to diable save change at closing the workbook

G

Guest

Is it possible to disable The message you receive at closing and opening, to
save changes and to update file, because I've created a file just for
printing bills where I do not need changes done on the page to be saved, just
like there is no need for updates either.
 
N

Nick Hodge

Shariq

You could include a workbook_beforeclose() event code as below. (To
implement right click on the small Excel icon top left of the workbook and
select view code...)

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

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
(e-mail address removed)
www.nickhodge.co.uk
 

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