ckelley1020
New Member
- Joined
- Jan 30, 2011
- Messages
- 9
I have a wkbk open I am running a macro from. I am trying to look at a second wkbk and find the last used cell in column A. I am using this code and it is not working. Any ideas what I am doing wrong?
lRow2 = wb2.Sheets(1).Range("A" & Rows.Count).End(xlUp).Row
a similar line of code that works fine in the active workbook (1)
Thanks for any help!
lRow2 = wb2.Sheets(1).Range("A" & Rows.Count).End(xlUp).Row
a similar line of code that works fine in the active workbook (1)
Thanks for any help!