ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Application-defined or object defined error (https://www.excelbanter.com/excel-programming/322378-application-defined-object-defined-error.html)

Teresa

Application-defined or object defined error
 
Hi, I get the above message on the following line, Im clearly doing
something wrong:

Range("A & (cells(1,1).End(xlDown).Row + 1):aj50").Select

Tom Ogilvy

Application-defined or object defined error
 
Range("A" & cells(1,1).End(xlDown).Row + 1 & ":aj50").Select

--
Regards,
Tom Ogilvy

"teresa" wrote in message
...
Hi, I get the above message on the following line, Im clearly doing
something wrong:

Range("A & (cells(1,1).End(xlDown).Row + 1):aj50").Select




JE McGimpsey

Application-defined or object defined error
 
Try:

Range("A" & Cells(1, 1).End(xlDown).Row + 1 & ":AJ50").Select

or, alternatively

Range(Cells(1, 1).End(xlDown).Offset(1, 0), Cells(50, 36)).Select

or

Range(Range("A1").End(xlDown)(2, 1), Range("AJ50")).Select



In article ,
teresa wrote:

Hi, I get the above message on the following line, Im clearly doing
something wrong:

Range("A & (cells(1,1).End(xlDown).Row + 1):aj50").Select



All times are GMT +1. The time now is 01:36 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com