I want to format column G if column D has "AI" in the same row using VBA in Excel 2007.
If i do it manually in the conditional formatting editor the formula =(D1 = "AI") works correctly.
If i try to add this formula to the Formula1 clause of a FormatConditions.Add method i must put
="(D1 = ""AI"")" or the interpreter complains. But this is copied literally with the doubled double quotes as the condition and the formatting does nothing.
What should I put in Formula1 ?
Antonio

Gbased onFwhy are you usingD1?? - user2140261