LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Locked Several Worksheets, allow format cells/select unlocked cell

Hi: I have several worksheets that have locked cells and unlocked cells. User
are able to select unlocked cells to enter data. I have a VBA code I got off
of another post, but it only allows users to select unlocked cells on each
worksheet. How can I also allow users to format unlocked cells using VBA so I
don't have to go one by one protecting each sheet in the workbook. Mainly I
would like for them to be able to change the font color. This is what I
currently have:
Sub LockDown()
For Each ws In Worksheets
ws.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True, _
Password:="elara"
Next ws
End Sub

Sub UnlockAll()
For Each ws In Worksheets
ws.Unprotect Password:="elara"
Next ws
End Sub


Thank You!
 
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
Viewing of protected locked or unlocked cells jmisenar Excel Worksheet Functions 2 April 22nd 09 04:58 AM
Display locked or Unlocked cells Jim May Excel Discussion (Misc queries) 2 August 30th 07 02:50 PM
Scope priviledges for locked/unlocked cells Jerry W. Lewis Excel Discussion (Misc queries) 2 July 30th 07 04:06 PM
paste locked cells and unlocked cells in protected sheet Angeline Excel Worksheet Functions 15 November 1st 06 11:51 PM
how do you "select locked cells" w/o "select unlocked cells"? princejohnpaulfin Excel Discussion (Misc queries) 3 July 16th 05 03:53 AM


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