thunderfoot
Board Regular
- Joined
- May 28, 2004
- Messages
- 229
All I want the code below to do is to Protect the workbook with whatever entry is in the 'Named Range'. The Named Range "Password_WB" is a cell in another unhidden (and unprotected) worksheet.
I'm getting :- Runtime error 5. Invalid Procedure Call or Argument.
What's wrong with this code??? I can't spot the error!!
Sub Macro4()
'
' Keyboard Shortcut: Ctrl+y
'
ActiveWorkbook.Protect Range("Password_WB"), Structure:=True, Windows:=False
End Sub
I'm getting :- Runtime error 5. Invalid Procedure Call or Argument.
What's wrong with this code??? I can't spot the error!!
Sub Macro4()
'
' Keyboard Shortcut: Ctrl+y
'
ActiveWorkbook.Protect Range("Password_WB"), Structure:=True, Windows:=False
End Sub