I have code that works exactly how I want it to EXCEPT it pastes formulas (vlookups, lookups, concatenates, adding vales from one column to another, etc...) instead of the text/values in the cells.
I am copying rows from a worksheet into a different worksheet and pasting it in the first empty row.
Sub GetData()
Dim sh4 As Worksheet, sh5 As Worksheet, lr As Long, rng As Range
Set sh4 = Sheets("CopySheet")
Set sh5 = Sheets("PasteSheet")
lr = sh4.Cells(Rows.Count, 1).End(xlUp).Row
Set rng = sh4.Range("A2:A" & lr)
rng.EntireRow.Copy sh5.Cells(Rows.Count, 1).End(xlUp)(2)
End Sub
I am copying rows from a worksheet into a different worksheet and pasting it in the first empty row.
Sub GetData()
Dim sh4 As Worksheet, sh5 As Worksheet, lr As Long, rng As Range
Set sh4 = Sheets("CopySheet")
Set sh5 = Sheets("PasteSheet")
lr = sh4.Cells(Rows.Count, 1).End(xlUp).Row
Set rng = sh4.Range("A2:A" & lr)
rng.EntireRow.Copy sh5.Cells(Rows.Count, 1).End(xlUp)(2)
End Sub