ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Last cell and first emty???!!! (https://www.excelbanter.com/excel-programming/345139-last-cell-first-emty.html)

JohnDK[_8_]

Last cell and first emty???!!!
 

I can get the last cell in a range by code below.

Selection.End(xlDown).Select

However, i want the next cell down to paste a selection, i dont want t
paste over data in the lastrow, it should be the first cell, next ro
down.

Any ideas?
Th

--
JohnD
-----------------------------------------------------------------------
JohnDK's Profile: http://www.excelforum.com/member.php...nfo&userid=718
View this thread: http://www.excelforum.com/showthread.php?threadid=48346


Norman Jones

Last cell and first emty???!!!
 
Hi John,

Try:

Selection.End(xlDown)(2).Select

---
Regards,
Norman



"JohnDK" wrote in
message ...

I can get the last cell in a range by code below.

Selection.End(xlDown).Select

However, i want the next cell down to paste a selection, i dont want to
paste over data in the lastrow, it should be the first cell, next row
down.

Any ideas?
Thx


--
JohnDK
------------------------------------------------------------------------
JohnDK's Profile:
http://www.excelforum.com/member.php...fo&userid=7184
View this thread: http://www.excelforum.com/showthread...hreadid=483469




Jim May

Last cell and first emty???!!!
 
How 'bout:
Selection.End(xlDown).offset(1,0).select
HTH

"JohnDK" wrote in
message ...

I can get the last cell in a range by code below.

Selection.End(xlDown).Select

However, i want the next cell down to paste a selection, i dont want to
paste over data in the lastrow, it should be the first cell, next row
down.

Any ideas?
Thx


--
JohnDK
------------------------------------------------------------------------
JohnDK's Profile:
http://www.excelforum.com/member.php...fo&userid=7184
View this thread: http://www.excelforum.com/showthread...hreadid=483469




Peter Rooney

Last cell and first emty???!!!
 
John,

How about

Selection.End(xlDown).Offset(1, 0).Select

Regards

Pete



"JohnDK" wrote:


I can get the last cell in a range by code below.

Selection.End(xlDown).Select

However, i want the next cell down to paste a selection, i dont want to
paste over data in the lastrow, it should be the first cell, next row
down.

Any ideas?
Thx


--
JohnDK
------------------------------------------------------------------------
JohnDK's Profile: http://www.excelforum.com/member.php...fo&userid=7184
View this thread: http://www.excelforum.com/showthread...hreadid=483469



Tom Ogilvy

Last cell and first emty???!!!
 
Selection.End(xlDown).offset(1,0).Select

or

Selection.End(xlDown)(2).Select

--
Regards,
Tom Ogilvy


"JohnDK" wrote in
message ...

I can get the last cell in a range by code below.

Selection.End(xlDown).Select

However, i want the next cell down to paste a selection, i dont want to
paste over data in the lastrow, it should be the first cell, next row
down.

Any ideas?
Thx


--
JohnDK
------------------------------------------------------------------------
JohnDK's Profile:

http://www.excelforum.com/member.php...fo&userid=7184
View this thread: http://www.excelforum.com/showthread...hreadid=483469




JohnDK[_9_]

Last cell and first emty???!!!
 

Thx guys, i got it.

Much appreciated. :)


--
JohnDK
------------------------------------------------------------------------
JohnDK's Profile: http://www.excelforum.com/member.php...fo&userid=7184
View this thread: http://www.excelforum.com/showthread...hreadid=483469



All times are GMT +1. The time now is 10:21 PM.

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