I am a novice old timer who enjoys fooling around with excel, I copied this macro from and old computer and wanted to use it one a new one I got.
Its supposed to draw a line across a row when there is a change from one number to another.
When I try to use it I get this error
Compile Error
Expected End Sub
Help please.
Thanks Don
Sub Macro1()
'
' Macro1 Macro
' Macro recorded 8/27/2008 by
'
' Keyboard Shortcut: Ctrl+m
Sub Drawline()
Dim vValue
Do Until ActiveCell = Empty
vValue = ActiveCell
ActiveCell.Offset(1, 0).Activate
If ActiveCell <> vValue Then
Range(ActiveCell, ActiveCell.Offset(0, 35)).Select
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.Weight = xlMedium
.ColorIndex = xlAutomatic
End With
End If
Loop
End Sub