Rebellion34
Technical User
all, I have a code that worked until I added an exception to it the code is:
Sub Macro4()
'
' Macro4 Macro
'
'
Range("I3:I43").Select
Selection.FormatConditions.Add Type:=xlExpression, Formula1:= _
"=if(LEN(TRIM(I3))>0"[red]-if(I:I,"order")-if(I:I,"dialogue")[/red]
Selection.FormatConditions(Selection.FormatConditions.Count).SetFirstPriority
With Selection.FormatConditions(1).Interior
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorDark1
.TintAndShade = -0.249946592608417
End With
Selection.FormatConditions(1).StopIfTrue = False
End Sub
can you show me where i went wrong in the argument so that it will work please? the aded exception is in red.
thanks in advance for any help.
Rob
Sub Macro4()
'
' Macro4 Macro
'
'
Range("I3:I43").Select
Selection.FormatConditions.Add Type:=xlExpression, Formula1:= _
"=if(LEN(TRIM(I3))>0"[red]-if(I:I,"order")-if(I:I,"dialogue")[/red]
Selection.FormatConditions(Selection.FormatConditions.Count).SetFirstPriority
With Selection.FormatConditions(1).Interior
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorDark1
.TintAndShade = -0.249946592608417
End With
Selection.FormatConditions(1).StopIfTrue = False
End Sub
can you show me where i went wrong in the argument so that it will work please? the aded exception is in red.
thanks in advance for any help.
Rob