Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.charting
|
|||
|
|||
![]()
Can worksheets be protected by one password rather than passwords for each
worksheet? I am using certain ranges allowed to be edited/used by the user but not all worksheets are the same usable ranges. Possible based on my current settings for the worksheets, can be protected by one password and yet the data will continue to update itself? Tired of entering the password for all sheets to change things! |
#2
![]()
Posted to microsoft.public.excel.charting
|
|||
|
|||
![]()
Hi,
Here are 2 custom routines which will help you protect and unprotect all the worksheets in the currently open workbook in one go. Sub MyProtect() Dim sht As Worksheet For Each sht In ActiveWorkbook.Sheets sht.Protect "abcd" Next End Sub Sub MyUnprotect() Dim sht As Worksheet For Each sht In ActiveWorkbook.Sheets sht.Unprotect "abcd" Next End Sub Copy these in the VBA/Maro Editing window to your workbook and run. Please note 'abcd' is the password, which you can replace as per your choice. HTH, -- Pranav Vaidya VBA Developer PN, MH-India If you think my answer is useful, please rate this post as an ANSWER!! "Asiageek" wrote: Can worksheets be protected by one password rather than passwords for each worksheet? I am using certain ranges allowed to be edited/used by the user but not all worksheets are the same usable ranges. Possible based on my current settings for the worksheets, can be protected by one password and yet the data will continue to update itself? Tired of entering the password for all sheets to change things! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Help, losing protection & read only with worksheets emailed out | Excel Discussion (Misc queries) | |||
Worksheets with password protection | Excel Worksheet Functions | |||
protection - hiding worksheets | Excel Worksheet Functions | |||
Removing protection from excel worksheets | Excel Worksheet Functions | |||
Best possible protection of worksheets in excel | Excel Worksheet Functions |