View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Jacob Skaria Jacob Skaria is offline
external usenet poster
 
Posts: 8,520
Default 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..