Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Sue Sue is offline
external usenet poster
 
Posts: 285
Default Row number of last cell with data

Hi all.

I'm trying to find the code for obtaining the row number of the last cell
with data in a spreadsheet. This is probably an easy one. I don't see any
posts jumping out at me about it though.
--
Sue
Programmer/Data Analyst
Minnesota
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 220
Default Row number of last cell with data

Sub Test()
lRow = ActiveSheet.Cells(Rows.Count, 1).End(xlUp).Row
MsgBox lRow
End Sub

--
Dan

  #3   Report Post  
Posted to microsoft.public.excel.programming
Sue Sue is offline
external usenet poster
 
Posts: 285
Default Row number of last cell with data

Thanks, Dan!
--
Sue
Programmer/Data Analyst
Minnesota
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Row number of last cell with data

See
http://www.rondebruin.nl/last.htm



--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Sue" wrote in message ...
Hi all.

I'm trying to find the code for obtaining the row number of the last cell
with data in a spreadsheet. This is probably an easy one. I don't see any
posts jumping out at me about it though.
--
Sue
Programmer/Data Analyst
Minnesota

  #5   Report Post  
Posted to microsoft.public.excel.programming
Sue Sue is offline
external usenet poster
 
Posts: 285
Default Row number of last cell with data

Thanks, Ron! Nice website!
--
Sue
Programmer/Data Analyst
Minnesota



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
enter data in 1 cell and produce a number in another cell Towboat Girl Excel Worksheet Functions 1 February 3rd 10 01:54 AM
Extracting the data according to the number of cell wilchong via OfficeKB.com New Users to Excel 4 May 13th 08 02:28 AM
how to find number in a cell , a cell contains character data ornumeric data [email protected] Excel Worksheet Functions 3 February 19th 08 07:29 PM
how do i use the data in one cell as the row number of another cel vidhya Excel Discussion (Misc queries) 2 October 17th 05 04:23 PM
inserting data from a row to a cell, when the row number is specified by a formula in a cell [email protected] New Users to Excel 2 January 6th 05 07:18 AM


All times are GMT +1. The time now is 10:36 AM.

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"