Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Protecting Selected Sheets
I have three sheets Sheet1, 2 & 3. I want to create a script that wil password protect sheets 2 & 3 only. Any help will be greatly appreciated. Nick -- Nick ----------------------------------------------------------------------- Nick S's Profile: http://www.excelforum.com/member.php...fo&userid=1651 View this thread: http://www.excelforum.com/showthread.php?threadid=52764 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Protecting Selected Sheets
Nick, Worksheets(2).Protect Password:="whatever" Worksheets(3).Protect Password:="whatever" -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "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 |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Protecting selected cells in a worksheet | Excel Discussion (Misc queries) | |||
Protect selected cells without protecting worksheet | Excel Discussion (Misc queries) | |||
Protecting Macro and selected sheets | Excel Discussion (Misc queries) | |||
Default cursor/selected cell position after protecting | Excel Worksheet Functions | |||
Protecting buttons with VB code rather than protecting sheets/books? | Excel Programming |