The object Error keeps appearing no matter what I try. I'm not that experienced in VBA.
Its appears to be when I'm giving the "lastrow" variable a value.
Const sFILE_PATH As String = "C:\Users\Downloads\"
Const sEXTENSION As String = ".xlsm"
Dim lastrow As Long
Dim lastrow_Offset As Long: lastrow_Offset = ThisWorkbook.Sheets("Test").Cells(Rows.Count, "h").End(xlUp).Row
Dim wbk As Workbook
Dim sFileName As String
sFileName = "2018-12"
Set wbk = Workbooks.Open(sFILE_PATH & sFileName & sEXTENSION)
Set lastrow = wbk.Sheets("Acc").Cells(Rows.Count, "C").End(xlUp).Row
Setcommand before populating the variable. The command.rowreturns a number, not a range.