#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Find the last row


Hi everyone,

I have a large Excel file that I need to append to. I want to append to
the first blank row in Column A. How do I do that? My script's below:

Range("A1").Select 'to select
column A
Range(Selection, Selection.End(xlDown)).Select 'to goto last row w/
data
???????????? 'move one
row down???


--
ledzepe
------------------------------------------------------------------------
ledzepe's Profile: http://www.excelforum.com/member.php...o&userid=25207
View this thread: http://www.excelforum.com/showthread...hreadid=568025

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Find the last row

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

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"ledzepe" wrote in
message ...

Hi everyone,

I have a large Excel file that I need to append to. I want to append to
the first blank row in Column A. How do I do that? My script's below:

Range("A1").Select 'to select
column A
Range(Selection, Selection.End(xlDown)).Select 'to goto last row w/
data
???????????? 'move one
row down???


--
ledzepe
------------------------------------------------------------------------
ledzepe's Profile:

http://www.excelforum.com/member.php...o&userid=25207
View this thread: http://www.excelforum.com/showthread...hreadid=568025



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Find the last row

xlDown will stop at the first blank cell.

OK if you know there are no intervening blank cells.

The preferred method is to work from bottom up.

Sub findbottom()
ActiveSheet.Cells(Rows.Count, 1).End(xlUp) _
.Offset(1, 0).Select
End Sub


Gord Dibben MS Excel MVP

On Thu, 3 Aug 2006 13:30:23 -0400, ledzepe
wrote:


Hi everyone,

I have a large Excel file that I need to append to. I want to append to
the first blank row in Column A. How do I do that? My script's below:

Range("A1").Select 'to select
column A
Range(Selection, Selection.End(xlDown)).Select 'to goto last row w/
data
???????????? 'move one
row down???


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
Find Function Guy Lydig Excel Discussion (Misc queries) 2 May 19th 06 07:19 PM
Find and Replace blakrapter Excel Worksheet Functions 3 December 15th 05 12:25 AM
Code needed to find records from bottom up Andy Excel Discussion (Misc queries) 4 December 5th 05 03:27 AM
find a cells from a range of cell kelvintaycc Excel Worksheet Functions 2 April 2nd 05 07:20 PM
Excel has a "Find Next" command but no "Find Previous" command. Michael Fitzpatrick Excel Discussion (Misc queries) 2 January 10th 05 11:45 PM


All times are GMT +1. The time now is 05:35 PM.

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

About Us

"It's about Microsoft Excel"