Hi, this is a portion of code that is contained within a loop, where "data" and "mailmerge" have beend defined as worksheet names.
It feels very clumsy to go select sheet, select cell, copy then select sheet, select cell, paste...
is there a better way of doing this?
It feels very clumsy to go select sheet, select cell, copy then select sheet, select cell, paste...
is there a better way of doing this?
Code:
' copy paste customer
data.Activate
Cells(RowCustomer, CurrentCol).Select
Selection.Copy
mailmerge.Activate
Cells(CurrentRow, ColCustomer).Select
Selection.PasteSpecial Paste:=xlPasteValues