have a sheet with large amounts of data trying to add a row with a border or double line when the series of values change in column a.
Here is what i have and it works great for adding the row but i cant figure out how to add the border or the double line.
Thanks for your help!
With Sheets("Consolidate")
lr = .Range("A" & .Rows.Count).End(xlUp).Row
For i = lr To 2 Step -1
If Len(.Range("A" & i).Value) > 0 And Len(.Range("A" & i - 1).Value) > 0 Then
If .Range("A" & i).Value <> .Range("A" & i - 1).Value Then
.Rows(i).Insert Shift:=xlDown
End If
End If
Next
End With
Here is what i have and it works great for adding the row but i cant figure out how to add the border or the double line.
Thanks for your help!
With Sheets("Consolidate")
lr = .Range("A" & .Rows.Count).End(xlUp).Row
For i = lr To 2 Step -1
If Len(.Range("A" & i).Value) > 0 And Len(.Range("A" & i - 1).Value) > 0 Then
If .Range("A" & i).Value <> .Range("A" & i - 1).Value Then
.Rows(i).Insert Shift:=xlDown
End If
End If
Next
End With