Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default simultaneous protection

I have set up a workbook containing 15 sheets. 12 of them are named Jan to
Dec.
I KNOW how to protect each one, but is it possible to protect all twelve in
one go ?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default simultaneous protection

You can try out the below macro. If you are new to macros..

--Set the Security level to low/medium in (Tools|Macro|Security).
--From workbook launch VBE using short-key Alt+F11.
--From menu 'Insert' a module and paste the below code.
--Get back to Workbook.
--Run macro from Tools|Macro|Run <selected macro()


Sub ProtectSheets()
Dim intCount As Integer
For intCount = 1 To 12
Sheets(CStr(MonthName(intCount, True))).Protect Password:="password"
Next
End Sub

Sub UnProtectSheets()
Dim intCount As Integer
For intCount = 1 To 12
Sheets(CStr(MonthName(intCount, True))).UnProtect Password:="password"
Next
End Sub

--
Jacob


"Peese" wrote:

I have set up a workbook containing 15 sheets. 12 of them are named Jan to
Dec.
I KNOW how to protect each one, but is it possible to protect all twelve in
one go ?

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
Simultaneous calls farid2001 Excel Worksheet Functions 4 March 13th 09 08:22 PM
How do I do simultaneous AND and OR filtering ? Motown Mick Excel Discussion (Misc queries) 3 August 21st 07 02:32 AM
simultaneous subtotals johnny vino Excel Discussion (Misc queries) 1 September 22nd 06 10:11 PM
Simultaneous Filtering Mike Excel Worksheet Functions 3 July 25th 06 08:21 AM
Simultaneous Excel backgrounds.... Colin Hayes Excel Discussion (Misc queries) 2 June 1st 05 09:41 PM


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