Can you tell me how change Excel cell colors using VBA ? When a value is OK -> cell color is green. When a value is NOTOK -> cell color is red.
0
votes
2 Answers
1
votes
0
votes
You can use Conditional Formatting when you edit the contents of the worksheet. If you want to use VBA, and there are good reasons to do so, simply turn on the macro recorder, edit the contents of the worksheet, then look at the macro for the VBA code. Excel will write the code for you: it's a great way to learn VBA and get what you need in an efficient manner.