Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

EXCEL VBA: color index from conditional formatting

Posted on 2004-04-08
2
Medium Priority
?
444 Views
Last Modified: 2011-09-20
I have a set of cells

5   3   8   2  -6   4   3  -2

I have set a condition formatting to set any negative values to green (colorindex of 4) so the cells in brackets would show up green

5   3   8   2  [-6]   4   3  [-2]

however, when i try to get the cells(r,c).interior.colorindex, it still gives me clear althought the conditional formatting shows it as green.

myColor = cells(r,c).interior.colorindex      (myColor becomes value -4142 which is clear)

How do i get the value of the conditional formatting color and not just the cell color of that cell.
0
Comment
Question by:yws812
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 81

Accepted Solution

by:
byundt earned 200 total points
ID: 10785599
Hi yws812,
See Chip Pearson's web page http://www.cpearson.com/excel/CFColors.htm

Cheers!

Brad
0
 
LVL 81

Expert Comment

by:byundt
ID: 10786065
yws812,
Thanks for the grade!
Brad
0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft Office Picture Manager was included in Office 2003, 2007, and 2010, but not in Office 2013. Users had hopes that it would be in Office 2016/Office 365, but it is not. Fortunately, the same zero-cost technique that works to install it with …
My attempt to use PowerShell and other great resources found online to simplify the deployment of Office 365 ProPlus client components to any workstation that needs it, regardless of existing Office components that may be needing attention.
This video shows where to find templates, what they are used for, and how to create and save a custom template using Microsoft Word.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question