Hello and thank you for any attention my post may receive.
I would like to copy static range ws1.Range("B4,C4,B6,B8") and a dynamic range with values (exclude all empty cells) within ws1.Range("J3:J21"), and paste to the next empty cell range in ws5.Range("C3:H1000"). So for every cell in ws1.Range("J3:J21") that meets the criteria I would like to paste it to ws5 column H and populate C:G with the static range.
I am able to paste the entire ws1.Range("J3:J21") to column H on ws5 with the following code, however that is not exactly what I need to do.
Any help will be greatly appreciated.
Thank you and have a great day!
I would like to copy static range ws1.Range("B4,C4,B6,B8") and a dynamic range with values (exclude all empty cells) within ws1.Range("J3:J21"), and paste to the next empty cell range in ws5.Range("C3:H1000"). So for every cell in ws1.Range("J3:J21") that meets the criteria I would like to paste it to ws5 column H and populate C:G with the static range.
I am able to paste the entire ws1.Range("J3:J21") to column H on ws5 with the following code, however that is not exactly what I need to do.
Code:
ws1.Range("J3:J21").Copy
ws5.Cells(Rows.Count, "H").End(xlUp).Offset(1, 0).PasteSpecial xlPasteValues
Any help will be greatly appreciated.
Thank you and have a great day!