Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 75
Default Finding the last used row in a specific column...

Hi all.

Currently I am using
Lastrow = Activesheet.usedrange.row - 1 + activesheet.usedrange.rows.count

I can't seem to figure out how to get this to work in a specified column
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Finding the last used row in a specific column...

For column A use...

lastrow = cells(rows.count, "A").end(xlUp).Row
--
HTH...

Jim Thomlinson


"havocdragon" wrote:

Hi all.

Currently I am using
Lastrow = Activesheet.usedrange.row - 1 + activesheet.usedrange.rows.count

I can't seem to figure out how to get this to work in a specified column

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Finding the last used row in a specific column...

Try this for column A in Sheet1

Lr = Sheets("sheet1").Range("A" & Rows.Count).End(xlUp).Row


--
Regards Ron de Bruin
http://www.rondebruin.nl



"havocdragon" wrote in message ...
Hi all.

Currently I am using
Lastrow = Activesheet.usedrange.row - 1 + activesheet.usedrange.rows.count

I can't seem to figure out how to get this to work in a specified column



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
Finding Number of cells in a column of other sheet having a specific word in them [email protected] New Users to Excel 5 February 21st 07 01:51 PM
i need help with finding a specific formula Dave Edinburgh Excel Discussion (Misc queries) 2 January 7th 06 11:15 PM
finding specific values in a within a file gerry405 New Users to Excel 0 November 14th 05 02:08 PM
Finding specific word in column Phil #3 Excel Worksheet Functions 3 March 28th 05 09:00 AM
Finding specific column values in a variable row Chris M.[_3_] Excel Programming 2 September 8th 03 10:47 PM


All times are GMT +1. The time now is 05:50 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"