shawleigh17
Board Regular
- Joined
- Nov 16, 2007
- Messages
- 79
Hi, I added the following code to my vba code for the workbook_open module. This code was generated using a macro recorder, but now it doesn't seem to work when I move the code to the open event.
I get an application error. Any suggestions.
Code:
Sheets("Layout_Manager").Select
Sheets("Layout_Manager").Protection.AllowEditRanges.Add Title:="Layout_Manager_Edit", Range:= _
Range("B4:BC100"), Password:="xxxxxxxx"
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True
I get an application error. Any suggestions.
Last edited: