Hey all!
Need some help making an adjustment to my code. It works perfectly, but I need automate it.
Data is stored in the "Input" sheet, starting in cell B2. (B2:AH)
Once the rest of the code finishes, I need it to perform the same action, but move to the next row (B3:AH) Then automatically stop when there are no more entries on the input tab.
Currently there are ~500 rows on the input tab, but this number can vary.
I tried a few ways and failed - any help would be greatly appreciated!
Thank you!
Need some help making an adjustment to my code. It works perfectly, but I need automate it.
Data is stored in the "Input" sheet, starting in cell B2. (B2:AH)
Once the rest of the code finishes, I need it to perform the same action, but move to the next row (B3:AH) Then automatically stop when there are no more entries on the input tab.
Currently there are ~500 rows on the input tab, but this number can vary.
I tried a few ways and failed - any help would be greatly appreciated!
Thank you!
VBA Code:
Sub Combined()
Application.ScreenUpdating = False
Sheets("Input").Select
Range("B2:AH2").Select
Selection.Copy
Sheets("Main").Select
Range("D8").Select
Selection.PasteSpecial Paste:=xlPasteValues
Range("D21:Z26").Copy
Sheets("Output").Select
Range("A" & Rows.Count).End(xlUp).Offset(1, 0).PasteSpecial xlValues
Selection.Value = Selection.Value
Application.ScreenUpdating = True
Excel.Application.CutCopyMode = False
Sheets("Main").Select
End Sub