K
Karen53
Hi,
I keep getting an error stating it can't create the top line. It errors at
the LineStyle Continuous. I don't know why. What do I need to check?
With Range("L2")
.FormatConditions.Delete
.HorizontalAlignment = xlCenter
.FormatConditions.Add Type:=xlCellValue, Operator:=xlEqual, _
Formula1:="=""""""Gross Up"""""""
.FormatConditions(1).Borders(xlRight).LineStyle = xlNone
With .FormatConditions(1).Borders(xlLeft)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
With Selection.FormatConditions(1).Borders(xlTop)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
With .FormatConditions(1).Borders(xlBottom)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
End With
I keep getting an error stating it can't create the top line. It errors at
the LineStyle Continuous. I don't know why. What do I need to check?
With Range("L2")
.FormatConditions.Delete
.HorizontalAlignment = xlCenter
.FormatConditions.Add Type:=xlCellValue, Operator:=xlEqual, _
Formula1:="=""""""Gross Up"""""""
.FormatConditions(1).Borders(xlRight).LineStyle = xlNone
With .FormatConditions(1).Borders(xlLeft)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
With Selection.FormatConditions(1).Borders(xlTop)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
With .FormatConditions(1).Borders(xlBottom)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
End With