
Signature
Regards
VBA.Noob.Confused
XP Pro
Office 2007
I think I see what is wrong, I am stepping thru each cell?

Signature
Regards
VBA.Noob.Confused
XP Pro
Office 2007
> I select a range in a row and begin formatting per the code below, I am
> having trouble getting this code to work.
[quoted text clipped - 21 lines]
> Range("D10").Select
> '======
Rick S. - 28 Jan 2008 21:11 GMT
Last reply was NOT stepping thru each cell.
I believe am now.
'======
Range("F10:F29").Select
Selection.FormatConditions.Add Type:=xlCellValue, Operator:=xlEqual, _
Formula1:="=""TRG#"""
Selection.FormatConditions(Selection.FormatConditions.Count).SetFirstPriority
With Selection.FormatConditions(1).Font
.Bold = True
.Italic = True
.TintAndShade = 0
End With
For Each c In Selection
If Left(c.Value, 3) = "TRG" Then
c.HorizontalAlignment = xlGeneral
c.VerticalAlignment = xlBottom
End If
Next c
Selection.FormatConditions(1).StopIfTrue = False
Range("D10").Select
'======
So much to learn!

Signature
Regards
VBA.Noob.Confused
XP Pro
Office 2007
> I think I see what is wrong, I am stepping thru each cell?
>
[quoted text clipped - 23 lines]
> > Range("D10").Select
> > '======