I have the following macro which is taking data from one range of cells & copying it to the next free column in another worksheet (starting from row 14).
Sub CopyColumnBandPasteToFirstFreeColumnSheet2()
Dim PasteToCol As Long
PasteToCol = Sheet5.Cells(14, Columns.Count).End(xlToLeft).Column + 1
Sheet1.Range("F14:F83").Copy Sheet5.Cells(14, PasteToCol)
End Sub
It works well.
However I need it to Paste the Value rather than the formula - I've tried to add the .PasteSpecial Paste:=xlPasteValues part to both line, but have no luck.
How can I get it to work / where am I going wrong?
Sub CopyColumnBandPasteToFirstFreeColumnSheet2()
Dim PasteToCol As Long
PasteToCol = Sheet5.Cells(14, Columns.Count).End(xlToLeft).Column + 1
Sheet1.Range("F14:F83").Copy Sheet5.Cells(14, PasteToCol)
End Sub
It works well.
However I need it to Paste the Value rather than the formula - I've tried to add the .PasteSpecial Paste:=xlPasteValues part to both line, but have no luck.
How can I get it to work / where am I going wrong?