ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Select the next row after xldown range (https://www.excelbanter.com/excel-programming/293610-select-next-row-after-xldown-range.html)

ExcelMonkey[_108_]

Select the next row after xldown range
 
I want to highlight column A all the way down to the end of its curren
data range and then select the first row after the end of the dat
range. Assuming column A has 14 rows of data I want to then select th
15th row (i.e. A15).

What do I have to add to the end of this code to do that?


Range("A1").Select
Range(Selection, Selection.End(xlDown)).Select

Thank

--
Message posted from http://www.ExcelForum.com


Frank Kabel

Select the next row after xldown range
 
Hi
try
Range(Selection, Selection.End(xlDown).offset(1,0)).Select


--
Regards
Frank Kabel
Frankfurt, Germany

I want to highlight column A all the way down to the end of its
current data range and then select the first row after the end of the
data range. Assuming column A has 14 rows of data I want to then
select the 15th row (i.e. A15).

What do I have to add to the end of this code to do that?


Range("A1").Select
Range(Selection, Selection.End(xlDown)).Select

Thanks


---
Message posted from http://www.ExcelForum.com/



ExcelMonkey[_109_]

Select the next row after xldown range
 
Thanks Frank

--
Message posted from http://www.ExcelForum.com



All times are GMT +1. The time now is 02:40 AM.

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