Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.newusers
|
|||
|
|||
Unprotecting Sheets
Is it possible to unprotect all sheets in a workbook at the same time?
|
#2
Posted to microsoft.public.excel.newusers
|
|||
|
|||
Unprotecting Sheets
Zee,
You could use VBA to cycle through all the sheets that are protected and unprotect them that way. Don't think it is possible without code. -- http://www.ExcelHelp.us 888-MY-ETHER ext. 01781474 "Zee" wrote: Is it possible to unprotect all sheets in a workbook at the same time? |
#3
Posted to microsoft.public.excel.newusers
|
|||
|
|||
Unprotecting Sheets
Unfortunately I am not very familiar with VBA and therefore am not sure what
to enter into the editor to accomplish this. "galimi" wrote: Zee, You could use VBA to cycle through all the sheets that are protected and unprotect them that way. Don't think it is possible without code. -- http://www.ExcelHelp.us 888-MY-ETHER ext. 01781474 "Zee" wrote: Is it possible to unprotect all sheets in a workbook at the same time? |
#5
Posted to microsoft.public.excel.newusers
|
|||
|
|||
Unprotecting Sheets
Hi Galimi,
I tried pasting the code into the VB editor and the first line states an error. Thanks "galimi" wrote: Zee, The following code should do it: public sub unlock for each sht in thisworkbook.sheets sht.unprotect next end sub -- http://www.ExcelHelp.us Call me at 1-888-MY-ETHER ext. 01781474 "Zee" wrote: Unfortunately I am not very familiar with VBA and therefore am not sure what to enter into the editor to accomplish this. "galimi" wrote: Zee, You could use VBA to cycle through all the sheets that are protected and unprotect them that way. Don't think it is possible without code. -- http://www.ExcelHelp.us 888-MY-ETHER ext. 01781474 "Zee" wrote: Is it possible to unprotect all sheets in a workbook at the same time? |
#6
Posted to microsoft.public.excel.newusers
|
|||
|
|||
Unprotecting Sheets
If they have a password un comment the password section and change mypassword for your password, the code goes in a standard module. Sub Ulock_Sheets() Dim Sh as worksheet For each sh in sheets sh.unprotect 'password:="mypassword" next sh end sub -- Simon Lloyd Regards, Simon Lloyd 'The Code Cage' (http://www.thecodecage.com) ------------------------------------------------------------------------ Simon Lloyd's Profile: http://www.thecodecage.com/forumz/member.php?userid=1 View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=33860 |
#7
Posted to microsoft.public.excel.newusers
|
|||
|
|||
Unprotecting Sheets
unlock is a reserved word.
Try............... public sub un_lock() Dim sht as Worksheet for each sht in thisworkbook.sheets sht.unprotect next end sub If the sheets have the same password you could use........... Sub UnprotectAllSheets() Application.ScreenUpdating = False Dim N As Single For N = 1 To Sheets.Count Sheets(N).Unprotect Password:="password" 'edit to your actual pword Next N Application.ScreenUpdating = True End Sub Gord Dibben MS Excel MVP On Wed, 26 Nov 2008 07:12:00 -0800, Zee wrote: Hi Galimi, I tried pasting the code into the VB editor and the first line states an error. Thanks "galimi" wrote: Zee, The following code should do it: public sub unlock for each sht in thisworkbook.sheets sht.unprotect next end sub -- http://www.ExcelHelp.us Call me at 1-888-MY-ETHER ext. 01781474 "Zee" wrote: Unfortunately I am not very familiar with VBA and therefore am not sure what to enter into the editor to accomplish this. "galimi" wrote: Zee, You could use VBA to cycle through all the sheets that are protected and unprotect them that way. Don't think it is possible without code. -- http://www.ExcelHelp.us 888-MY-ETHER ext. 01781474 "Zee" wrote: Is it possible to unprotect all sheets in a workbook at the same time? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
protecting and unprotecting | Excel Worksheet Functions | |||
Unprotecting Button | Excel Discussion (Misc queries) | |||
Unprotecting 4 sheets before "WorkbookOpen" macro runs | Excel Discussion (Misc queries) | |||
unprotecting a worksheet | Excel Discussion (Misc queries) | |||
PROTECTING/UNPROTECTING SHEETS | Excel Discussion (Misc queries) |