Afro_Cookie
Board Regular
- Joined
- Mar 17, 2020
- Messages
- 103
- Office Version
- 365
- Platform
- Windows
Part of my Macro is protecting my workbook. If I run the same macro, with the workbook protected, it will unprotect my workbook even though there is nothing in the code telling it to do so.
Is this a common thing with protecting workbooks in VBA?
Below is a sampling of the my code.
Is this a common thing with protecting workbooks in VBA?
Below is a sampling of the my code.
VBA Code:
Worksheets("Dashboard").Visible = False
ActiveWorkbook.Protect "password"
ActiveWorkbook.Save