Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disabling Workbook/Sheet Protection Via Code 1

Status
Not open for further replies.

TheMus

Technical User
Aug 23, 2000
28
US
There is a workbook that has an auto_open macro that updates and calculates. The workbook sheets want to be password protected after the auto_open macro updates and calculates. Is there a VBA statement that will disable password protection at the start of the code and then enable just before completing?

Thanks,

Rus
 
Use the Worksheet.Protect and Worksheet.Unprotect methods to toggle the protection. You can specifiy the password for these methods.
 
Thanks for sharing your knowledge!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top