Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default 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/


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Select the next row after xldown range

Thanks Frank

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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Use xldown to select a range of cells merry_fay Excel Discussion (Misc queries) 3 May 26th 09 05:54 PM
When entering data into a range of cells, select the entire range. Q Excel Discussion (Misc queries) 0 September 26th 07 04:36 AM
End(xlDown) not working? RAHokie Excel Discussion (Misc queries) 2 January 19th 07 12:40 AM
xldown and xlright He4Giv Excel Programming 2 January 29th 04 12:41 AM
ActiveCell.End(xlDown).Select not working consistently reclusive monkey Excel Programming 2 October 13th 03 02:28 PM


All times are GMT +1. The time now is 12:15 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"