I have written a code but it only pastes the formulas present I want to paste it as values and not as formulas.
Sub lastRow()
Dim wsS1 As Worksheet 'Sheet1
Dim wsS2 As Worksheet 'sheet2
Dim lastR As Long, lastC As Long
Set wsS1 = Sheets("Instru Input")
Set wsS2 = Sheets("Process1")
With wsS1
lastR = .Range("A" & .Rows.Count).End(xlUp).Row - 4
End With
With wsS2
lastC = .Cells(3, Columns.Count).End(xlToLeft).Column
Range(.Cells(3, 1).Address, .Cells(3, lastC).Address).AutoFill
Destination:=Range(.Cells(3, 1).Address, .Cells(lastR, lastC).Address)
End With
End Sub
I am new to VBA I don't know how to paste the data as values I am not sure what to add to this code that it will only paste as values.