R. Woltmann
New Member
- Joined
- Mar 7, 2003
- Messages
- 48
I have created a a button that is associated with running a macro. Is there a way to prevent this button from running the associated macro when the sheet is protected?
If Sheets("Sheet1").ProtectContents or Sheets("Sheet1").ProtectDrawingObjects or Sheets("Sheet1").ProtectScenarios Then Exit Sub