Trying to create a file which can transfer data on a daily basis from one sheet to another. I can get the transfer of data but it copies over the formulas too and all the cells gives a ref error. How can I copy over only the values and not the formulas. I'm new to VBA and any help will be greatly appreciated. Thanks
Tried to use the PasteSpecial
code but will not work.
Sub Number1()
'
' Number1 Macro
'
Set wsCopy = Workbooks("Copy of PLA Failure Results (Macro) Good Test 2.xlsm").Worksheets("Raw Data")
Set wsDest = Workbooks("Copy of PLA Failure Results (Macro) Good Test 2.xlsm").Worksheets("Stored Data")
lCopyLastRow = wsCopy.Cells(wsCopy.Rows.Count, "A").End(xlUp).Row
lDestLastRow = wsDest.Cells(wsDest.Rows.Count, "A").End(xlUp).Offset(1).Row
wsCopy.Range("J2:R" & lCopyLastRow).Copy _
wsDest.Range("A2" & lDestLastRow)
End Sub