Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Identifying Conditional Format

Is there a way to determine the conditional format that is displayed in a
cell?

I want a VB script to count all of the cells in a range that have particular
format. I would like to have cells included in the count whether the format
is "hard-wired" (fixed format), or whether the format is set by conditional
formatting.

Say I want to count the cells with a green fill. I want the count to
include cells that are permanently formatted with a green fill, as well as
cells whose current conditions result in a green fill being applied as a
result of conditional format.

Anyone have an leads on how to determine what format is currently displayed
in a conditionally formatted cell?


-- David


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,420
Default Identifying Conditional Format

See http://www.xldynamic.com/source/xld.CFConditions.html

--
__________________________________
HTH

Bob

"David Benson" wrote in message
...
Is there a way to determine the conditional format that is displayed in a
cell?

I want a VB script to count all of the cells in a range that have
particular format. I would like to have cells included in the count
whether the format is "hard-wired" (fixed format), or whether the format
is set by conditional formatting.

Say I want to count the cells with a green fill. I want the count to
include cells that are permanently formatted with a green fill, as well as
cells whose current conditions result in a green fill being applied as a
result of conditional format.

Anyone have an leads on how to determine what format is currently
displayed in a conditionally formatted cell?


-- David



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Identifying Conditional Format


Hello David Benson,

The conditional format can be determined for a cell. But, remember in
Excel '95 to 2003 you can have up to 3 conditions. In 2007 there are
many new changes to conditional formatting that would probably make
writing this macro a waste of time. I have seen some code for checking
the older Excel versions conditional formats, but I don't have any code
or site addresses for you.

Sincerely,
Leith Ross


--
Leith Ross
------------------------------------------------------------------------
Leith Ross's Profile: http://www.thecodecage.com/forumz/member.php?userid=75
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=48298

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Identifying Conditional Format

See Chip Pearson's site for info and code.

http://www.cpearson.com/excel/CFColors.htm

Or Bob Phillips' site

http://www.xldynamic.com/source/xld.CFConditions.html


Gord Dibben MS Excel MVP

On Thu, 8 Jan 2009 15:52:26 -0600, "David Benson" wrote:

Is there a way to determine the conditional format that is displayed in a
cell?

I want a VB script to count all of the cells in a range that have particular
format. I would like to have cells included in the count whether the format
is "hard-wired" (fixed format), or whether the format is set by conditional
formatting.

Say I want to count the cells with a green fill. I want the count to
include cells that are permanently formatted with a green fill, as well as
cells whose current conditions result in a green fill being applied as a
result of conditional format.

Anyone have an leads on how to determine what format is currently displayed
in a conditionally formatted cell?


-- David


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
identifying the last figure in an cell and then format it. Freddie Excel Discussion (Misc queries) 2 August 27th 09 04:42 PM
Conditional Format - Identifying Highlighted Cells pallaver Excel Discussion (Misc queries) 9 July 9th 08 02:18 AM
Conditional Format overwrighting previous conditional format davethewelder Excel Programming 2 April 10th 08 04:01 PM
New Conditional Format Overriding Previous Conditional Format Rene Excel Discussion (Misc queries) 3 February 27th 08 06:08 PM
Keep format after paste from other worksheets - conditional format or EnableControl solution doesn't work No Name Excel Programming 0 May 3rd 04 12:22 PM


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