Gilliland, Gill
2007-07-31 14:45:36 UTC
I've found plenty of references to add a conditional format to an excel
sheet using VBA, but I cannot figure out how to translate that to vbscript.
The following is a VBA example that would alternate row colors. I would like
to set this formatcondition using vbscript:
Selection.FormatConditions.Delete
Selection.FormatConditions.Add Type:=xlExpression, _
Formula1:="=MOD(ROW(),2)=1"
Selection.FormatConditions(1).Interior.ColorIndex = 15
Thanks for any help,
Gill
sheet using VBA, but I cannot figure out how to translate that to vbscript.
The following is a VBA example that would alternate row colors. I would like
to set this formatcondition using vbscript:
Selection.FormatConditions.Delete
Selection.FormatConditions.Add Type:=xlExpression, _
Formula1:="=MOD(ROW(),2)=1"
Selection.FormatConditions(1).Interior.ColorIndex = 15
Thanks for any help,
Gill