LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,514
Default Password protecting multiple pages, and then some.

'GS[_2_ Wrote:
;1615775']I forgot to mention you can also uncheck the *Select
locked cells*
option in the *Protect sheet* dialog when setting protection.

--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion



---
This email is free from viruses and malware because avast! Antivirus
protection is active.
http://www.avast.com


They need to be unhidden and I need to know a way to
protect/unprotect all pages at one time since I work on some 70+
pages daily.


But you stated you did not want peaople to see the formulas!! When the
sheet is protected the formulas are not viewable but their results are
viewable because the cell remains visible.

Also, you need to apply protection to each sheet individually. This
requires looping through the Worksheets collection. There are a couple
ways to go with this:

1. Write a macro to protect all sheets when manually executed. Perhaps
something like...

Sub SetProtection()
Dim Wks As Worksheet
For Each Wks In ActiveWorkbook.Worksheets
Wks.Protect Password:="pwd"
Next
End Sub

...which doesn't require this macro be in the workbook being protected.

2. Have this done automatically via ThisWorkbook.Sheet_Activate event
whenever a worksheet is activated. (This requires macros be allowed
because the code must reside in the workbook)

Private Sub Workbook_SheetActivate(ByVal Sh As Object)
Sh.Protect Password:="pwd"
End Sub

HTH

--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion



---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com



 
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
Password protecting multiple pages Pistolade New Users to Excel 0 January 22nd 14 10:49 PM
Password protecting multiple spreadsheets at once Ron Excel Discussion (Misc queries) 4 August 26th 08 09:19 PM
Password Protecting a particular Sub pianoman[_14_] Excel Programming 3 May 23rd 06 09:06 AM
Password Protecting Nick Excel Discussion (Misc queries) 6 June 30th 05 12:06 PM
Protecting Multiple sheets with prompt for password to unprotect pkley Excel Programming 1 January 10th 04 06:46 AM


All times are GMT +1. The time now is 01:32 PM.

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"