ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Workbook Protection (https://www.excelbanter.com/excel-programming/281652-workbook-protection.html)

J Lenz

Workbook Protection
 
[ActiveWorkbook.Protect]

Has anyone noticed that the code above simply toggles
workbook protection on and off? In my application, the
execution of this line of code protects the workbook
every other time.

J Lenz



Jim Rech

Workbook Protection
 
I never noticed that but I don't think I ever use it without arguments:

ActiveWorkbook.Protect , True, True

I guess you should too to be guaranteed the result you want.

--
Jim Rech
Excel MVP




All times are GMT +1. The time now is 09:38 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com