Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default can you protect multiple worksheets at thr same time

I have several multiple sheet workbooks where I need to protect the cells
that have formulas in them. is there a way I can protect serveral worksheets
at the same time? When I need to make changes to several of the worksheets it
takes forever to go in an unprotect each one, make the changes and then
proect each one again.I tried selecting them all but then the protection is
not an option avalible.

Thank you!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 104
Default can you protect multiple worksheets at thr same time

Hello,

Press [Alt][F11] on the keyboard to open the VB Editor.
Double click on This Workbook under the Microsoft Excel Objects.
-Paste this into the right of the screen:
Sub protectSheets()
Dim ws As Worksheet
For Each ws In ThisWorkbook.Worksheets
ws.Protect password:="test"
Next ws
End Sub

Sub unprotectSheets()
Dim ws As Worksheet
For Each ws In ThisWorkbook.Worksheets
ws.Unprotect password:="test"
Next ws
End Sub

-Change the word test if you want but leave what you change it to inside
double inverted commas.
-When you want to protect, click on the Tools menu, point to Macro and
select Macros...
-Click the one you want and click OK.

--
Hope this helps,
MarkN


"mlpmlb" wrote:

I have several multiple sheet workbooks where I need to protect the cells
that have formulas in them. is there a way I can protect serveral worksheets
at the same time? When I need to make changes to several of the worksheets it
takes forever to go in an unprotect each one, make the changes and then
proect each one again.I tried selecting them all but then the protection is
not an option avalible.

Thank you!

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
multiple time stamps on worksheets LynnH Excel Discussion (Misc queries) 0 February 3rd 06 06:50 PM
how do i protect multiple worksheets Dennis Excel Discussion (Misc queries) 2 October 31st 05 11:41 PM
SUMif or SUMproduct across multiple worksheets? Eric Shamlin Excel Worksheet Functions 1 September 29th 05 09:55 AM
Can you paste values on multiple worksheets at one time? JanetK Excel Worksheet Functions 1 June 12th 05 04:51 PM
Countif with multiple criteria and multiple worksheets JJ Excel Worksheet Functions 1 December 28th 04 06:37 PM


All times are GMT +1. The time now is 09:01 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"