Hi all,
I have a macro that runs some calculations and then copies results to another file. However, I'm getting a 438 run-time error stating "Object doesn't support this property or method".
I attempted to use:
The above change allowed the sub to complete, but my results were pasted to the right of the current region.
Not sure what the issue is ... I feel like it has to do with adding the "+1", but I need the data to be pasted below the last used row.
Any help is appreciated!
I have a macro that runs some calculations and then copies results to another file. However, I'm getting a 438 run-time error stating "Object doesn't support this property or method".
Code:
Set dbWB = Workbooks.Open(DBFile)
Set dbSh1 = dbWB.Sheets("DB_Ready")
DBlastrow = dbSh1.Rows.Range("A65000").End(xlUp).Row
tmpSh2.Range("A2:I" & Templatelastrow).Copy
dbSh1.Range("A" & DBlastrow + 1).Paste
I attempted to use:
Code:
dbSh1.PasteSpecial xlPasteAll
Not sure what the issue is ... I feel like it has to do with adding the "+1", but I need the data to be pasted below the last used row.
Any help is appreciated!
Last edited: