Prevent User from saving

  • Thread starter Thread starter crapit
  • Start date Start date
In the ThisWorkbook module, use the following code:

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, _
Cancel As Boolean)
Cancel = True
End Sub


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
 
Thanks.
In addition, does protecting the sheet allow data to be enter? Can it be use
to prevent resizing the height/width of cell but
 

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