Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Need to detect cell shading

Dim rng as range, cell as Range
For each cell in Range("A1:A10")
if cell.Interior.ColorIndex < xlNone then
if rng is nothing then
set rng = Cell
else
set rng = union(rng,cell)
end if
end if
Next
if not rng is nothing then
rng.select
End if

Might be what you want.

--
Regards,
Tom Ogilvy



"Buddy" wrote in message
...
I have a requirement to detect only cells that have been
shaded. Is there a funtion to accomplish this?

Thank You



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
Detect Cell Colour MayJuneJuly Charts and Charting in Excel 1 July 22nd 08 09:56 PM
VB ; How do I detect a Comment in a cell rdwj Excel Discussion (Misc queries) 5 June 4th 08 09:17 PM
How to detect characters in cell? Eric Excel Discussion (Misc queries) 1 November 10th 07 02:02 PM
How to detect characters with a cell? Eric Excel Discussion (Misc queries) 12 June 26th 07 03:08 PM
Conditional Cell Shading (based on the shading of other cells) Tubby Excel Worksheet Functions 2 June 20th 06 10:03 PM


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