Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default End Of Records


how to find the end of records of an excel sheet like finding the end of
a text file with the command EOF


--
JOLLYNEELI
------------------------------------------------------------------------
JOLLYNEELI's Profile: http://www.excelforum.com/member.php...o&userid=26782
View this thread: http://www.excelforum.com/showthread...hreadid=400375

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,646
Default End Of Records

See iLastrow in thread "Delete rows" upwards!

Regards,
Stefi

€˛JOLLYNEELI€¯ ezt Ć*rta:


how to find the end of records of an excel sheet like finding the end of
a text file with the command EOF


--
JOLLYNEELI
------------------------------------------------------------------------
JOLLYNEELI's Profile: http://www.excelforum.com/member.php...o&userid=26782
View this thread: http://www.excelforum.com/showthread...hreadid=400375


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default End Of Records

Assuming your data is in column A, use

Dim LastRow As Long
LastRow = ActiveSheet.Cells(Rows.Count,"A").End(xlUp).Row


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"JOLLYNEELI"
wrote
in message
...

how to find the end of records of an excel sheet like finding
the end of
a text file with the command EOF


--
JOLLYNEELI
------------------------------------------------------------------------
JOLLYNEELI's Profile:
http://www.excelforum.com/member.php...o&userid=26782
View this thread:
http://www.excelforum.com/showthread...hreadid=400375



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default End Of Records

Can you pick out a column that always has data?

if yes:

dim LastRow as long

with worksheets("sheet1")
lastrow = .cells(.rows.count,"E").end(xlup).row
end with

(I used column E.)

JOLLYNEELI wrote:

how to find the end of records of an excel sheet like finding the end of
a text file with the command EOF

--
JOLLYNEELI
------------------------------------------------------------------------
JOLLYNEELI's Profile: http://www.excelforum.com/member.php...o&userid=26782
View this thread: http://www.excelforum.com/showthread...hreadid=400375


--

Dave Peterson
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
Delete records when certain records have duplicate column data JVroom New Users to Excel 1 January 26th 09 06:23 PM
Updating old records law Excel Discussion (Misc queries) 0 December 2nd 07 03:01 PM
Records Christine Excel Discussion (Misc queries) 1 January 11th 07 04:29 PM
Need Help with checking records Charles Excel Programming 1 January 29th 04 07:48 AM
SQL for EMPTY records Seth[_3_] Excel Programming 0 July 27th 03 08:38 PM


All times are GMT +1. The time now is 06:25 PM.

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"