View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
mercer77[_3_] mercer77[_3_] is offline
external usenet poster
 
Posts: 1
Default password protecting sheet when workbook opens


Problem solved!

This seems to work, basically specifying the workbook. I don'
understand the difference - I guess it's just one of those littl
mysteries.... :)

Private Sub Workbook_Open()
Dim Password
Password = "jack"
Workbooks("INVOICESv2a.XLS").Sheets("invoice list").Protec
Password:=Password
End Su

--
mercer7
-----------------------------------------------------------------------
mercer77's Profile: http://www.excelforum.com/member.php...fo&userid=3148
View this thread: http://www.excelforum.com/showthread.php?threadid=51164