PC Review


Reply
Thread Tools Rate Thread

How can I unprotect multiple same passoword worksheets at once?

 
 
tomster3
Guest
Posts: n/a
 
      22nd Apr 2008
We have created a large number of workbooks containing worksheets that are
protected, except for a few cells, all with the same password. Is there any
way to remove protection from multiple worksheets at one time? We are trying
to avoid having to open each worksheet at a time, changing the one protected
text cell that needs changing, and then putting protection back on.
 
Reply With Quote
 
 
 
 
Per Jessen
Guest
Posts: n/a
 
      22nd Apr 2008
On Apr 22, 8:25*pm, tomster3 <tomst...@discussions.microsoft.com>
wrote:
> We have created a large number of workbooks containing worksheets that are
> protected, except for a few cells, all with the same password. *Is thereany
> way to remove protection from multiple worksheets at one time? *We are trying
> to avoid having to open each worksheet at a time, changing the one protected
> text cell that needs changing, and then putting protection back on.


Hi

With all workbooks open this macro will unprotect all sheets in all
worksheets.

Sub RemovePassword()
MyPassword = "PassWrd"

For Each wb In Application.Workbooks
For Each sh In wb.Sheets
sh.Unprotect Password:=MyPassword ' To protect sheets change
to "sh.Protect Password...."
Next
Next
End Sub

Regards,
Per
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to protect and unprotect multiple worksheets effeciently =?Utf-8?B?U3Vta25pZ2h0?= Microsoft Excel Misc 4 23rd Feb 2007 08:10 PM
Protect/Unprotect Multiple Worksheets =?Utf-8?B?S2F0aGVyaW5lIFI=?= Microsoft Excel Misc 2 9th May 2006 04:07 PM
Protect/unprotect worksheets davegb Microsoft Excel Programming 2 17th May 2005 11:15 PM
Protect/unprotect all worksheets =?Utf-8?B?SmFubmE=?= Microsoft Excel Worksheet Functions 2 7th Jan 2005 01:01 AM
protect / unprotect worksheets using VBA ExcelUserinPA Microsoft Excel Programming 2 1st Nov 2003 03:36 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:13 AM.