Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to have macro protecting a workbook, with a password
specified by an administrator in one of the hidden worksheets. The cell in the hidden worksheet in which the password is specified is named, so I want to use the range name in the macro that protects/unprotects the workbook. It all works well when I try to unprotect the workbook, using the code : ActiveWorkbook.Unprotect password:=range("rangename"). However, I get an error when I try to protect the workbook with the code: ActiveWorkbook.Protect password:=range("rangename") The error message is: Runtime Error "1004, Application-defined or Object-defined error. Can anybody help ? Many Thanks Wim Ruepert Sydney, Australia |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
the cell is not a password, but it's value is
range("rangename").value |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
the cell is not a password, but its content (the value) may be one:
try: range("rangename").value |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Unable to password-protect "VeryHidden" worksheet | New Users to Excel | |||
OT I would want protect my sheets of excel from a "password recovery" software... How? | Excel Worksheet Functions | |||
ActiveWorkbook.Protect password:=range("rangename") does not work | Excel Discussion (Misc queries) | |||
How to crack "Protect Sheet" Password in Excel? | Excel Programming | |||
no password carryover with "protect sheet" in macro | Excel Programming |