I currently have the code below which does all I want except for one thing. Currently it copes a range of data in "Data" sheet and pastes it as values in sheet "JE" starting at cell C22:K22.
Cell B2 in the range is always the same, also column J, however row 17 can differ, the range should be up to the last row used based in column B.
So range can be B2:J10 or B2:B200 depending on how many rows exist.
Any ideas?
Thank you!
Code:
Sub CopyData()
Sheets("Data").Range("B2:J17").Copy
Sheets("JE").Range("C22").PasteSpecial xlPasteValues
End Sub
Cell B2 in the range is always the same, also column J, however row 17 can differ, the range should be up to the last row used based in column B.
So range can be B2:J10 or B2:B200 depending on how many rows exist.
Any ideas?
Thank you!