I set the property of my worksheet to xlUnlocked so thet the protected cells can't be selected. This makes a neater project I believe. The problem is when I save it and re-open the workbook the property is set bact to the default. How can I do this in VBA when the workbook opens?
[Solved] VBA : Setting xlUnlocked
- glentz1017
- Closed
-
-
-
-
Thanks. That did the trick. I don't realy understand the (1) after the worksheet. If you have time could you explain that to me. My books aren't too in depth on that.
-
Worksheets(1) does the processing for first worksheet in the workbook.
If you want to protect all your sheets, you can put it in For loop or do the processing on specific sheet with
follwoing code, where "Protected_Sheet" is the name of the sheet on which the processing is needed. -
It's always nice to understand just what I'm doing instead of just inserting code. Thanks for the education on that statement.
George
-
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!