Hi All,
i have a very simple copy paste code from an input sheet(DROP) to the main sheet (sheet1)
this works but as i am copying a range when i use this multiple times it inserts the data in the next row after the previous range was pasted in, not the next empty cell.
how do i make it disregard empy cells
there is the range it copies from (K4:V33). as the size of this list varies i need to copy the whole thing but exclude the empty rows
this is where it paste to
i have a very simple copy paste code from an input sheet(DROP) to the main sheet (sheet1)
this works but as i am copying a range when i use this multiple times it inserts the data in the next row after the previous range was pasted in, not the next empty cell.
how do i make it disregard empy cells
VBA Code:
Private Sub CommandButton1_Click()
Range("K4:V33").Copy
Sheets("Sheet1").Range("B" & Rows.Count).End(xlUp).Offset(1, 0).PasteSpecial xlPasteValues
End Sub
there is the range it copies from (K4:V33). as the size of this list varies i need to copy the whole thing but exclude the empty rows
this is where it paste to