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

I am trying to find cells that have conditional formatting in them.
I was thinking just to turn the cell a specific color. or something.
But I am having a hard time finding them.

For instance. I put a conditional formatting statment on a cell.
then I select a bunch of cells
then I perform the following:

Dim x As Excel.Range
Set x = Excel.Selection
MsgBox x.FormatConditions.Count

and I get -1

is there a way I can ID each cell in a sheet. that has conditional
formatting?

thanks


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default finding conditional formatting cells

you could try looping through the range cell by cell and using a counter:

for each y in x
if y.formatconditions.count 0 then counter = counter + 1
next y

msgbox counter

hope that helps.
--
Mike Lee
McKinney,TX USA


"greg" wrote:

I am trying to find cells that have conditional formatting in them.
I was thinking just to turn the cell a specific color. or something.
But I am having a hard time finding them.

For instance. I put a conditional formatting statment on a cell.
then I select a bunch of cells
then I perform the following:

Dim x As Excel.Range
Set x = Excel.Selection
MsgBox x.FormatConditions.Count

and I get -1

is there a way I can ID each cell in a sheet. that has conditional
formatting?

thanks



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
Formatting cells in a column with conditional formatting? shamor Excel Discussion (Misc queries) 8 May 19th 08 10:11 PM
Conditional Formatting; finding numerical data in mixed text. Philonis Excel Discussion (Misc queries) 2 June 5th 07 11:57 PM
Trouble Finding Duplicate Values with Conditional Formatting Diane Excel Discussion (Misc queries) 2 May 20th 07 04:00 PM
Finding data validation and conditional formatting Dave L[_2_] Excel Discussion (Misc queries) 1 May 2nd 07 12:06 AM
Conditional Formatting Multiple cells based on 2 cells Louis Markowski Excel Worksheet Functions 2 June 1st 05 05:26 PM


All times are GMT +1. The time now is 12:18 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"