Microsoft Excel Question:

Download Job Interview Questions and Answers PDF

In visual basic, I can set the color of a cell with the .interior.colorIndex property. How can I read the color of a cell before I change it?

MS Excel Interview Question
MS Excel Interview Question

Answer:

Use a line of code like this:
OrigColor = Selection.Interior.ColorIndex

Download MS Excel Interview Questions And Answers PDF

Previous QuestionNext Question
Can I see a list of the ColorIndex and the corresponding color?How can I make the screen stop flashing during macro execution?