StuartOrd
asked on
Macro to show which cells are formatted "locked"
I'd like to see which cells are locked and which are unlocked on a sheet containing a mixture of locked and unlocked cells.
Can anyone help with a macros that shows all cells that are locked or unlocked, eg by shading the cells different colours?
Thanks
Can anyone help with a macros that shows all cells that are locked or unlocked, eg by shading the cells different colours?
Thanks
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Nice job Pari123.
If you add cells.select below Dim Cel as range in Pari 123's code like the following:
====
Dim cel As Range
Cells.Select
====
It will check all cells. When you find the cells just click Esc to stop the macros.
If you add cells.select below Dim Cel as range in Pari 123's code like the following:
====
Dim cel As Range
Cells.Select
====
It will check all cells. When you find the cells just click Esc to stop the macros.
ASKER
saurabh726,
That worked fine! Thanks.
pari123
I'm using 2003, so maybe that's why it failed at:
.Pattern = xlSolid
That worked fine! Thanks.
pari123
I'm using 2003, so maybe that's why it failed at:
.Pattern = xlSolid
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
brettdj,
Yes I can see that adding some features of this new article to saurabh726's code makes a good solution. I realised i needed to copy my sheet as many sheets have colour formatting that I didn't want to lose, and this method makes an automatic copy and doesn't recolour the sheets, so i can pick and choose a suitable hybrid.
Thanks all, excellent help as usual
Stuart
Yes I can see that adding some features of this new article to saurabh726's code makes a good solution. I realised i needed to copy my sheet as many sheets have colour formatting that I didn't want to lose, and this method makes an automatic copy and doesn't recolour the sheets, so i can pick and choose a suitable hybrid.
Thanks all, excellent help as usual
Stuart
Please let me know if this works.
this is for office 2007.
- ardhendu
Open in new window