Hello everyone: I'm having the above error in the line below when trying to run that macro recording for conditional formatting:
ExecuteExcel4Macro "(2,1,"";;;"")"
This is the full macro recording:
ExecuteExcel4Macro "(2,1,"";;;"")"
This is the full macro recording:
VBA Code:
Sub Macro2()
'
' Macro2 Macro
'
'
Range("A1").Select
Selection.NumberFormat = ";;;"
Selection.FormatConditions.Add Type:=xlExpression, Formula1:= _
"=IF(OR(NOT(ISNUMBER(INDIRECT(""'""&$D$2&""'!HQ5""))));OR(NOT(ISNUMBER(INDIRECT(""'""&$D$3&""'!HQ5"")))))"
Selection.FormatConditions(Selection.FormatConditions.Count).SetFirstPriority
ExecuteExcel4Macro "(2,1,"";;;"")"
Selection.FormatConditions(1).StopIfTrue = False
End Sub