G
Guest
Could someone please explain to me what the code below is doing. It is part
of a macro to insert rows, but each time I run the macro its going to Endsub.
On Error GoTo EndSub
Application.EnableCancelKey = xlDisabled
ActiveSheet.Select
Let Back = activecell.Column * (-1) + 3
Selection.Offset(0, Back).Range("A1").Select
Let test = activecell
If test = 1 Then GoTo Continue
If test = 0 Then GoTo EndSub
GoTo EndSub
of a macro to insert rows, but each time I run the macro its going to Endsub.
On Error GoTo EndSub
Application.EnableCancelKey = xlDisabled
ActiveSheet.Select
Let Back = activecell.Column * (-1) + 3
Selection.Offset(0, Back).Range("A1").Select
Let test = activecell
If test = 1 Then GoTo Continue
If test = 0 Then GoTo EndSub
GoTo EndSub