How JustAnswer Works:
  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.
Ask ATLPROG Your Own Question
ATLPROG, Computer Software Engineer
Category: Programming
Satisfied Customers: 7677
Experience:  MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML
Type Your Programming Question Here...
ATLPROG is online now
A new question is answered every 9 seconds

I want to check the color of a Cell? myCell=ActiveCell.ColorIndex

Customer Question

I want to check the color of a Cell?
myCell=ActiveCell.ColorIndex 'color of my active cell is color index 34
iCol=Selection.Interior.Color34 '34 is is light Turquoise.
if myCell = iCol Then
Exit Sub
End If
This does not work. Cell A5 is the active Cell, I just want to make sure Cell A5 is ColorIndex34.
Submitted: 2 years ago.
Category: Programming
Expert:  Jason Jones replied 2 years ago.

If anyone wishes to ask Jason a question directly,
they can do so at the following page:

My name is Jason. I look forward to helping you today.
May I ask if you changed the color of the cells manually or if you are using conditional formatting?
Thank you,

Related Programming Questions