Any thoughts as to why it keeps halting on the vData line..??
Oops.., my bad! That happens at the last row (UBound(vData)) because there is
no +1 element. Revise as follows...
....
For n = 10 To 28
On Error GoTo Cleanup
If Not vData(n + 1, 1) = vData(n, 1) Then
With Rows(n + 1).Columns("A:N").Borders(xlEdgeBottom)
.LineStyle = xlDouble
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThick
End With
End If
Next n
Cleanup:
End Sub
--
Garry
Free usenet access at
http://www.eternal-september.org
Classic
VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.
vb.general.discussion