Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

conditional formatting checking

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Conditional Formatting - Checking Cell Colours

Conditional Formatting - Checking Cell Colours

ResolvedVersion 2003

Alan has attended:
Excel VBA Intro Intermediate course

Conditional Formatting - Checking Cell Colours

Hi,

I am trying to figure out a way to check the ColorIndex of cells in Excel.
I think the problem is that the ColorIndex of the cells in question is decided by conditional formatting

Basically there are red cells (ColorIndex 3) and green cells (ColorIndex 35), the Pattern is xlsolid.

I want to create an If statement a bit like this:

If cells(Row,Column).ColorIndex = 3 Then
.......
End If

I think because the colorindex is decided by Conditional Formatting it isnt picking up.

Any ideas?

Many thanks,

Alan

RE: Conditional Formatting - Checking Cell Colours

Hi Alan

Thanks for your post, we have had a look at this and there isn't a clear cut solution available without a couple of hours work and having your working files to hand.

As this is beyond the scope of the forum, if you wish to proceed then please respond to my email. We will be able to review your files and give you a scope of work and any related costs.

Regards

Jacob

RE: Conditional Formatting - Checking Cell Colours

Thanks for getting back to me.

Not a problem. There are other ways around the problem as I can just use the conditions that derive those colour formats to make decisions.

Thanks again,

Alan

 

Training courses

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.

Excel tip:

Transpose text

You can transpose any range of cells, turning the columns into rows and the rows into columns. Just follow these steps:

Select the range.

Click the Copy button on the Standard toolbar to copy it to the Clipboard.

Select a cell outside of the range you copied.

Select Paste Special from the Edit menu.

In the Paste Special dialog box, click Transpose, then OK.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.