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

I've got a large spreadsheet used by many people. I need to find all the
cells which are locked, and either return a list of these cells or
change the color of them (but this part I can do myself).

Is there a function which finds locked cells?
Thanks,
Georgina



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Finding locked cells

Nothing better than looping

for each cell in usedrange
if cell.locked then
if rng = nothing then
set rng = cell
else
set rng = union(rng, cell)
end if
end if
Next
if not rng is nothing then
' do whatever
End if

--
regards,
Tom Ogilvy


georgina wrote in message
...
I've got a large spreadsheet used by many people. I need to find all the
cells which are locked, and either return a list of these cells or
change the color of them (but this part I can do myself).

Is there a function which finds locked cells?
Thanks,
Georgina



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/



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
Locked cells maltagirl Excel Discussion (Misc queries) 2 May 24th 08 02:23 PM
Finding all cells that are locked/hidden Bob Excel Discussion (Misc queries) 4 December 29th 06 02:24 PM
paste locked cells and unlocked cells in protected sheet Angeline Excel Worksheet Functions 15 November 1st 06 11:51 PM
Put comments on a locked spreadsheet even though cells not locked RDP Excel Worksheet Functions 1 September 11th 05 11:59 PM


All times are GMT +1. The time now is 10:45 AM.

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"