Hi all!
I'm using the below code to copy content from one sheet to another, in the next empty row. It's working perfectly for one copy selection, but I need to make another copy selection and paste it at the SAME ROW starting point, but in a different column.
For example, it copies B2-M16, and drops it in the "Main" Tab starting in row 50, which is the next empty row. I then need it to copy B17:M37, and paste it in column FJ, starting in the same empty row as before, row 50.
I'm not sure how to do this, and google isn't being helpful. But it may be my search terms. Any help on this would be appreciated!
thanks all!
I'm using the below code to copy content from one sheet to another, in the next empty row. It's working perfectly for one copy selection, but I need to make another copy selection and paste it at the SAME ROW starting point, but in a different column.
For example, it copies B2-M16, and drops it in the "Main" Tab starting in row 50, which is the next empty row. I then need it to copy B17:M37, and paste it in column FJ, starting in the same empty row as before, row 50.
I'm not sure how to do this, and google isn't being helpful. But it may be my search terms. Any help on this would be appreciated!
thanks all!
VBA Code:
Private Sub Update_Master_Click()
Sheets("Sch_Pricing").Range("B2:M16").Copy
Dim lastrow As Long
lastrow = Range("A65536").End(xlUp).Row
Sheets("Main").Activate
Cells(lastrow + 1, 1).PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=True