View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Don Guillett Don Guillett is offline
external usenet poster
 
Posts: 10,124
Default Protecting Selected Sheets

use a loop something like
for each ws in worksheets
if ws.name <"sheet1" then ws.protect.password="joe"
next


--
Don Guillett
SalesAid Software

"Nick S" wrote in
message ...

I have three sheets Sheet1, 2 & 3. I want to create a script that will
password protect sheets 2 & 3 only.

Any help will be greatly appreciated.

Nick.


--
Nick S
------------------------------------------------------------------------
Nick S's Profile:
http://www.excelforum.com/member.php...o&userid=16512
View this thread: http://www.excelforum.com/showthread...hreadid=527642