I would like to set up a loop in VBA to copy pairs of data from a row where each set of pairs is not contiguous and paste the data to another worksheet.
Here is what I have and it works but is not efficient.
.Range(.Cells(r, 20), .Cells(r, 21)).Copy wsSR.Range("B14:C14")
.Range(.Cells(r, 23), .Cells(r, 24)).Copy wsSR.Range("D14:E14")
.Range(.Cells(r, 26), .Cells(r, 27)).Copy wsSR.Range("F14:G14")
.Range(.Cells(r, 29), .Cells(r, 30)).Copy wsSR.Range("H14:I14")
.Range(.Cells(r, 32), .Cells(r, 33)).Copy wsSR.Range("J14:K14")
.Range(.Cells(r, 35), .Cells(r, 36)).Copy wsSR.Range("L14:M14")
.Range(.Cells(r, 38), .Cells(r, 39)).Copy wsSR.Range("N14:O14")
Thanks for any help you may provide.
Here is what I have and it works but is not efficient.
.Range(.Cells(r, 20), .Cells(r, 21)).Copy wsSR.Range("B14:C14")
.Range(.Cells(r, 23), .Cells(r, 24)).Copy wsSR.Range("D14:E14")
.Range(.Cells(r, 26), .Cells(r, 27)).Copy wsSR.Range("F14:G14")
.Range(.Cells(r, 29), .Cells(r, 30)).Copy wsSR.Range("H14:I14")
.Range(.Cells(r, 32), .Cells(r, 33)).Copy wsSR.Range("J14:K14")
.Range(.Cells(r, 35), .Cells(r, 36)).Copy wsSR.Range("L14:M14")
.Range(.Cells(r, 38), .Cells(r, 39)).Copy wsSR.Range("N14:O14")
Thanks for any help you may provide.