Thread: Amend the Code
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
BrianB BrianB is offline
external usenet poster
 
Posts: 1
Default Amend the Code


Like this :-
Worksheets("A").Unprotect password:="xx"
Workbooks("Book1.xls").Unprotect password:="xx"



Don't forget to re-protect afterwards

--
Brian

-----------------------------------------------------------------------
BrianB's Profile: http://www.excelforum.com/member.php...tinfo&userid=5
View this thread: http://www.excelforum.com/showthread.php?threadid=38792