I need to set the following formula in the conditional formula using VBA. I tried all different ways like doubling the double quote and Chr(34)
. Please help.
vFormula = "=OR(TEXT(B$2,"ddd")="Sat",TEXT(B$2,"ddd")="Sun")"
.FormatConditions.Add Type:=xlExpression, Formula1:=vFormula
What is the correct way to pass the Formula1
parameter which contains double quotes?