Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
J@Y J@Y is offline
external usenet poster
 
Posts: 127
Default What does Conditional format change when highlighting?

When I use conditional format to highlight cells, I found that the
FormatConditions(1).Interior.ColorIndex were changed to the same number no
matter if the cell is highlighted for not. So a cell with a yellow highlight
and a cell that looks white both have FormatConditions(1).Interior.ColorIndex
= 6. Why is that?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default What does Conditional format change when highlighting?

Because that is the condition being tested, not the result.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"J@Y" wrote in message
...
When I use conditional format to highlight cells, I found that the
FormatConditions(1).Interior.ColorIndex were changed to the same number no
matter if the cell is highlighted for not. So a cell with a yellow
highlight
and a cell that looks white both have
FormatConditions(1).Interior.ColorIndex
= 6. Why is that?



  #3   Report Post  
Posted to microsoft.public.excel.misc
J@Y J@Y is offline
external usenet poster
 
Posts: 127
Default What does Conditional format change when highlighting?

How would you test the result?

"Bob Phillips" wrote:

Because that is the condition being tested, not the result.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"J@Y" wrote in message
...
When I use conditional format to highlight cells, I found that the
FormatConditions(1).Interior.ColorIndex were changed to the same number no
matter if the cell is highlighted for not. So a cell with a yellow
highlight
and a cell that looks white both have
FormatConditions(1).Interior.ColorIndex
= 6. Why is that?




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default What does Conditional format change when highlighting?

You would see it if it succeeded because the colour changes.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"J@Y" wrote in message
...
How would you test the result?

"Bob Phillips" wrote:

Because that is the condition being tested, not the result.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)

"J@Y" wrote in message
...
When I use conditional format to highlight cells, I found that the
FormatConditions(1).Interior.ColorIndex were changed to the same number
no
matter if the cell is highlighted for not. So a cell with a yellow
highlight
and a cell that looks white both have
FormatConditions(1).Interior.ColorIndex
= 6. Why is that?






  #5   Report Post  
Posted to microsoft.public.excel.misc
J@Y J@Y is offline
external usenet poster
 
Posts: 127
Default What does Conditional format change when highlighting?

I need to test the cell to see whether it is colored by conditional
formatting in VB.

"Bob Phillips" wrote:

You would see it if it succeeded because the colour changes.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"J@Y" wrote in message
...
How would you test the result?

"Bob Phillips" wrote:

Because that is the condition being tested, not the result.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)

"J@Y" wrote in message
...
When I use conditional format to highlight cells, I found that the
FormatConditions(1).Interior.ColorIndex were changed to the same number
no
matter if the cell is highlighted for not. So a cell with a yellow
highlight
and a cell that looks white both have
FormatConditions(1).Interior.ColorIndex
= 6. Why is that?








  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default What does Conditional format change when highlighting?

That's very different, and very difficult. See
http://www.xldynamic.com/source/xld.CFConditions.html

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"J@Y" wrote in message
...
I need to test the cell to see whether it is colored by conditional
formatting in VB.

"Bob Phillips" wrote:

You would see it if it succeeded because the colour changes.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)

"J@Y" wrote in message
...
How would you test the result?

"Bob Phillips" wrote:

Because that is the condition being tested, not the result.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)

"J@Y" wrote in message
...
When I use conditional format to highlight cells, I found that the
FormatConditions(1).Interior.ColorIndex were changed to the same
number
no
matter if the cell is highlighted for not. So a cell with a yellow
highlight
and a cell that looks white both have
FormatConditions(1).Interior.ColorIndex
= 6. Why is that?








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
How do you use conditional format to change a bar color on a char. MJJONES618 Charts and Charting in Excel 1 January 10th 07 07:06 PM
Conditional Format: Expired dates wanting cell to change color dan Excel Discussion (Misc queries) 1 August 24th 06 11:27 PM
Conditional Format to change entire row based on one cells data Crowbar via OfficeKB.com Excel Discussion (Misc queries) 2 October 25th 05 05:01 PM
How do I use conditional formatting to change subtotals row format Ken Peterson Excel Worksheet Functions 3 March 24th 05 05:58 PM
Conditional format (word change) Onion Excel Worksheet Functions 2 February 8th 05 10:55 PM


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