What's wrong with this code?
Hi I have defined wb1 as a Workbook.
I am trying to run this code wb1.ActiveSheet.Cells(Rows.Count, 1).End(xlUp).Select
It is supposed to select the last row in a cell, however it gives me an error
Run-time error '1004'
Application-defined or object-defined error.
I am sure it has something to do with Syntax, not sure how to correct it. Any help will be greatly appreciated. Thanks.