Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I just inherited a very large legacy spreadsheet that has a good bit of
locked cells throughout. Is there a way to maybe iterate through a page and highlight or other formating of just cells that are locked? It's very time-consuming to manually check a lot of cells to see if they have been locked. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
here's a simple way, you can change bold to a color if you want
Sub locked_cells() Dim cell As Range For Each cell In ActiveSheet.UsedRange If cell.Locked = True Then cell.Font.Bold = True Else cell.Font.Bold = False End If Next End Sub -- Gary "scott" wrote in message ... I just inherited a very large legacy spreadsheet that has a good bit of locked cells throughout. Is there a way to maybe iterate through a page and highlight or other formating of just cells that are locked? It's very time-consuming to manually check a lot of cells to see if they have been locked. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Are you using Format|Conditional Formatting for anything?
If no, then how about using it to show the locked/unlocked cells? Select your range (ctrl-A for all the cells). Format|Conditional formatting formula is: =CELL("protect",A1) (Use the activecell's address instead of A1.) Give it a nice pattern. scott wrote: I just inherited a very large legacy spreadsheet that has a good bit of locked cells throughout. Is there a way to maybe iterate through a page and highlight or other formating of just cells that are locked? It's very time-consuming to manually check a lot of cells to see if they have been locked. -- Dave Peterson |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
That's smart. I was looking for a non-distructive method like that.
"Dave Peterson" wrote in message ... Are you using Format|Conditional Formatting for anything? If no, then how about using it to show the locked/unlocked cells? Select your range (ctrl-A for all the cells). Format|Conditional formatting formula is: =CELL("protect",A1) (Use the activecell's address instead of A1.) Give it a nice pattern. scott wrote: I just inherited a very large legacy spreadsheet that has a good bit of locked cells throughout. Is there a way to maybe iterate through a page and highlight or other formating of just cells that are locked? It's very time-consuming to manually check a lot of cells to see if they have been locked. -- Dave Peterson |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
By default all cells on the sheet are locked, locked status is only relevant
if the sheet is protected. If the sheet is protected you may (depending on protect options) need to unprotect before trying Gary's or Dave's suggestions. If that's not possible you could loop through cells checking if Not .Locked and apply some format to the unlocked cells. Regards, Peter T "scott" wrote in message ... I just inherited a very large legacy spreadsheet that has a good bit of locked cells throughout. Is there a way to maybe iterate through a page and highlight or other formating of just cells that are locked? It's very time-consuming to manually check a lot of cells to see if they have been locked. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can you highlight locked cells in excell, so you can check i | Excel Discussion (Misc queries) | |||
Locked worksheet & hyperlinks (w/ select locked cells unchecked) | Excel Discussion (Misc queries) | |||
Cells - highlight - locked up | Excel Discussion (Misc queries) | |||
Put comments on a locked spreadsheet even though cells not locked | Excel Worksheet Functions | |||
worksheet is locked on highlight how do I unlock it | Excel Worksheet Functions |