Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 9
Default Protection of worksheets

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   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 180
Default Protection of worksheets

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help, losing protection & read only with worksheets emailed out greg Excel Discussion (Misc queries) 0 February 15th 07 07:15 PM
Worksheets with password protection Judy Bryant Excel Worksheet Functions 4 November 10th 06 03:09 PM
protection - hiding worksheets confused Excel Worksheet Functions 5 June 20th 06 12:13 PM
Removing protection from excel worksheets Rick Wilson Excel Worksheet Functions 3 March 27th 06 11:58 AM
Best possible protection of worksheets in excel markx Excel Worksheet Functions 0 February 13th 06 10:49 AM


All times are GMT +1. The time now is 10:45 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"