Macro on Password

  • Thread starter Thread starter acss
  • Start date Start date
A

acss

Is there a way to have a password protect on a workbook and once end user
keys in the password, the workbook status will changed to modified?
 
the easiest way to do this is to have the workbook always believe it has been
changed as soon as you open it. In the ThisWorkbook module, put the
following macro...

Private Sub Workbook_Open()
Application.ActiveWorkbook.Saved = False
End Sub

That will make the workbook always believe that it needs to be saved.
 

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