Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How can I unprotect multiple same passoword worksheets at once?

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.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 703
Default How can I unprotect multiple same passoword worksheets at once?

On Apr 22, 8:25*pm, tomster3
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 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.


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
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
How to protect and unprotect multiple worksheets effeciently Sumknight Excel Discussion (Misc queries) 4 February 23rd 07 08:10 PM
Protect/Unprotect Multiple Worksheets Katherine R Excel Discussion (Misc queries) 2 May 9th 06 04:07 PM
Protect/unprotect worksheets davegb Excel Programming 2 May 17th 05 11:15 PM
Protect/unprotect all worksheets Janna Excel Worksheet Functions 2 January 7th 05 01:01 AM
protect / unprotect worksheets using VBA ExcelUserinPA Excel Programming 2 November 1st 03 03:36 PM


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

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

About Us

"It's about Microsoft Excel"