Disable saving in BeforeClose event

  • Thread starter Thread starter Franck
  • Start date Start date
F

Franck

Hi,
Got my template XLT and I don't want my user to save any Spreadsheet
based on it.

In the BeforeSave event : no problem. Save is disabled.
But in the BeforeClose event, I can't figure out how to do as if I set
Cancel to True, the spreadsheet does not save (Yeah !) but does not
close anymore !!!

Thks for help.
 
Try setting the Saved property of the book to True

THisWorkbok.Saved = True

--

HTH

RP
(remove nothere from the email address if mailing direct)
 

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