
Signature
Don Guillett
Microsoft MVP Excel
SalesAid Software
dguillett1@austin.rr.com
Sorry for being so ambiguous Don. What I meant was that with the insert line
command I was getting a line only under the data in Column D.....so if I
wanted them under cells A through G, all I did was copied that line and now
the macro looks as follows:
Sub insertspacesandline()
For i = Cells(Rows.Count, "d").End(xlUp).Row To 2 Step -1
If Cells(i - 1, "d") <> Cells(i, "d") Then
Rows(i).Insert
Cells(i - 1, "d").Borders(xlEdgeBottom).LineStyle = xlContinuous
Cells(i - 1, "a").Borders(xlEdgeBottom).LineStyle = xlContinuous
Cells(i - 1, "b").Borders(xlEdgeBottom).LineStyle = xlContinuous
Cells(i - 1, "c").Borders(xlEdgeBottom).LineStyle = xlContinuous
Cells(i - 1, "e").Borders(xlEdgeBottom).LineStyle = xlContinuous
Cells(i - 1, "f").Borders(xlEdgeBottom).LineStyle = xlContinuous
Cells(i - 1, "g").Borders(xlEdgeBottom).LineStyle = xlContinuous
End If
Next i
End Sub
So I got a line under the data for the Range A to G.
Thanks.......it worked wonderfully :)
Btw is there a rating system where I could rate your help?? I'd marked you
the highest possible points for helpgulness and prompt answers :)
Thanks again :)
> ???
>
[quoted text clipped - 79 lines]
> >> >> >
> >> >> > P
Don Guillett - 21 Sep 2007 20:54 GMT
one line for a-g
cells(i-1,"a").resize(,6).etc

Signature
Don Guillett
Microsoft MVP Excel
SalesAid Software
dguillett1@austin.rr.com
> Sorry for being so ambiguous Don. What I meant was that with the insert
> line
[quoted text clipped - 114 lines]
>> >> >> >
>> >> >> > P
Pman - 24 Sep 2007 14:28 GMT
Thanks again Don :)
> one line for a-g
> cells(i-1,"a").resize(,6).etc
[quoted text clipped - 117 lines]
> >> >> >> >
> >> >> >> > P