I have a column of data on one sheet that I am transposing to the last row of another sheet. Since I need to cherry pick which cell goes to where I cannot use a transpose function so I wrote the following macro:
Sub Copy_to_empty_row_test()
Dim cs As Worksheet 'Worksheet to copy from
Dim ps As Worksheet 'Worksheet to copy to
Set ps = Worksheets("Test")
Set cs = Worksheets("Imports")
ps.Range("A258:C258").Copy
ps.Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).PasteSpecial xlPasteFormulas
'Date check
cs.Range("B1").Copy
ps.Cells(Rows.Count, 1).End(xlUp).Offset(1, 3).PasteSpecial xlPasteValues
'OT
cs.Range("B4").Copy
ps.Cells(Rows.Count, 1).End(xlUp).Offset(1, 4).PasteSpecial xlPasteValues
ThisWorkbook.Worksheets("Test").Range("I245").Copy
ps.Cells(Rows.Count, 1).End(xlUp).Offset(1, 8).PasteSpecial xlPasteFormulas
End Sub
The issue I am running in to is that my data will copy to 2 rows instead of one row. So I will get one row with the formula and then a new row with the data. I have tried changing the code around, with this being the latest iteration, but I still end up with 2 rows of data instead of one.
Can anyone help with what I am missing?
Thanks.