Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Password from cell
Hi, I was trying to lock and unlock sheet using macro and the password should
pick from a cell (P1) from the same sheet can anyone help me with this? Thanks.. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Password from cell
ActiveWorkbook.Sheets("Sheet3").unprotect Range("P1")
If this post helps click Yes --------------- Jacob Skaria "Kashyap" wrote: Hi, I was trying to lock and unlock sheet using macro and the password should pick from a cell (P1) from the same sheet can anyone help me with this? Thanks.. |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Password from cell
strPassword = ActiveWorkbook.Sheets("Sheet3").Range("P1")
ActiveWorkbook.Sheets("Sheet3").Unprotect strPassword If this post helps click Yes --------------- Jacob Skaria "Kashyap" wrote: Hi, I was trying to lock and unlock sheet using macro and the password should pick from a cell (P1) from the same sheet can anyone help me with this? Thanks.. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
password in a cell | Excel Programming | |||
Password Protection - paste to unprotected cell locks the cell | Excel Discussion (Misc queries) | |||
Password Protect - put password in a cell in the workbook | Excel Programming | |||
PASSWORD REMOVAL I have the password to open the file and the password to modify the file now how to remove them | Excel Programming | |||
how to automate opening a password protected excel file? e.g. a .xls that has a password set in the security tab. | Excel Worksheet Functions |