Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default locked cells

I've heard there is a way of displaying which cells are
locked, a bit like showing the formulas.

I need to do this to provide a printout to prove that the
cells are protected.

Does anyone know how to do it?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default locked cells

for each cell in ActiveSheet.Usedrange
if cell.locked = False then
cell.Interior.ColorIndex = 6
end if
Next
activesheet.printout
for each cell in ActiveSheet.Usedrange
if cell.locked = False then
cell.Interior.ColorIndex = xlNone
end if
Next

If you sheet doesn't have colors then the above might work.

an easier way might be to execute

Sub SetState()
Activesheet.EnableSelection = xlUnlockedCells
End Sub

then when protection is in effect, only the unlocked cells can be selected.

--
Regards,
Tom Ogilvy

"MillyMollyMandy" wrote in message
...
I've heard there is a way of displaying which cells are
locked, a bit like showing the formulas.

I need to do this to provide a printout to prove that the
cells are protected.

Does anyone know how to do it?



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
Locked worksheet & hyperlinks (w/ select locked cells unchecked) dgold82 Excel Discussion (Misc queries) 1 July 10th 09 09:42 PM
paste locked cells and unlocked cells in protected sheet Angeline Excel Worksheet Functions 15 November 1st 06 11:51 PM
locked cells TED MEDIN Excel Discussion (Misc queries) 1 January 4th 06 04:22 AM
Put comments on a locked spreadsheet even though cells not locked RDP Excel Worksheet Functions 1 September 11th 05 11:59 PM
Locked cells Amy[_6_] Excel Programming 3 February 11th 04 04:02 PM


All times are GMT +1. The time now is 08:46 PM.

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"