Hi All,
I can't get thru this error "object required"
I have set it, declare but still not able to pass through it.
Kindly assist,
reggienoe
MOD EDIT: FIXED CODE TAGS LOCATION.
I can't get thru this error "object required"
Code:
Sub CopyRow2()
Dim lastrowSrc As Variant
Dim lastrowDest As Variant
Dim wb, wb1 As Workbook
wb = "C:\Dropbox\Folder\gsreport 2017 Final 3 - 012018.xlsm"
lastrowSrc = wb.Sheets("Sheet1").Range("A" & Rows.Count).End(xlUp).EntireRow
lastrowDest = ThisWorkbook.Sheets("Sheet1").Range("A" & Rows.Count).End(xlUp).EntireRow
lastrowDest = ExecuteExcel4Macro(lastrowSrc)
End Sub
Kindly assist,
reggienoe
MOD EDIT: FIXED CODE TAGS LOCATION.
Last edited by a moderator: