I have the following code which I have written to copy data from sheet3 to Sheet 4 using paste special values
I get invalid qualified when running the macro
It would be appreciated if someone could amend me code
I get invalid qualified when running the macro
Code:
PasteSpecial Paste:=xlPasteValues.Sheet(4).Range("A1")
It would be appreciated if someone could amend me code
Code:
Sub Copy_raw_JNLDATa()
Dim lr As Long
Sheets(4).UsedRange.ClearContents
With Sheets(3)
lr = .Range("A" & .Rows.Count).End(xlUp).Row
.Range("A1:I" & lr).Copy
PasteSpecial Paste:=xlPasteValues.Sheet(4).Range("A1")
End With
Sheets(4).UsedRange.EntireColumn.AutoFit
End Sub