Any way I can make this code do a loop for column C and then E and then G?
Application.GoTo Range("G2"), True
' This loop repeats for a fixed number of times determined by the number of rows
' in the range
Dim i As Integer
r = 2
For i = 1 To Selection.CurrentRegion.Rows.Count - 1
Call New_Sheet(r) ' Run New_Sheet Code
ActiveCell.Offset(1, 0).Select
r = r + 1
Next i
With the code above I'd have to change the starting point three times and run the macro manually three times. I'd like the user to only have to run it 1 time.
Application.GoTo Range("G2"), True
' This loop repeats for a fixed number of times determined by the number of rows
' in the range
Dim i As Integer
r = 2
For i = 1 To Selection.CurrentRegion.Rows.Count - 1
Call New_Sheet(r) ' Run New_Sheet Code
ActiveCell.Offset(1, 0).Select
r = r + 1
Next i
With the code above I'd have to change the starting point three times and run the macro manually three times. I'd like the user to only have to run it 1 time.