Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default How to know get the color index for the conditional formatting?

I want to know the color index for the current conditional formatting which
is true. How can I get the current condition color with VBA? I can only get
the real cell interior color and couldn't get the condition formatting color.
Please help. Thanks!!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default How to know get the color index for the conditional formatting?

Its not simple,

Vba Look here
http://www.cpearson.com/excel/CFColors.htm

UDF here
http://www.vbaexpress.com/kb/getarticle.php?kb_id=190

Mike
"luvgreen" wrote:

I want to know the color index for the current conditional formatting which
is true. How can I get the current condition color with VBA? I can only get
the real cell interior color and couldn't get the condition formatting color.
Please help. Thanks!!

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default Thank you so much. This is very helpful!

Thank you so much. This is very helpful!

"Mike H" wrote:

Its not simple,

Vba Look here
http://www.cpearson.com/excel/CFColors.htm

UDF here
http://www.vbaexpress.com/kb/getarticle.php?kb_id=190

Mike
"luvgreen" wrote:

I want to know the color index for the current conditional formatting which
is true. How can I get the current condition color with VBA? I can only get
the real cell interior color and couldn't get the condition formatting color.
Please help. Thanks!!

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Thank you so much. This is very helpful!

You can also find a color palette in the VBA help files under
PatternColorIndex Property that gives you the basic 56 colors with their
corresponding indexnumbers.

"luvgreen" wrote:

Thank you so much. This is very helpful!

"Mike H" wrote:

Its not simple,

Vba Look here
http://www.cpearson.com/excel/CFColors.htm

UDF here
http://www.vbaexpress.com/kb/getarticle.php?kb_id=190

Mike
"luvgreen" wrote:

I want to know the color index for the current conditional formatting which
is true. How can I get the current condition color with VBA? I can only get
the real cell interior color and couldn't get the condition formatting color.
Please help. 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
Conditional Formatting on Index,Match formula Nadine Excel Worksheet Functions 3 May 1st 10 03:12 AM
Copying Color Index + conditional Formats + validation Barb Reinhardt Excel Programming 3 February 19th 07 07:20 PM
Color index & conditional format Harley Excel Programming 1 November 16th 06 01:11 PM
Conditional color formatting entries have wild color. John Geyer Excel Discussion (Misc queries) 0 February 24th 06 06:11 PM
Conditional Formatted Cell Color Index MDR5300 Excel Programming 5 January 27th 05 09:15 PM


All times are GMT +1. The time now is 06:39 AM.

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"