Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hello Merritts, There are a few ways to do this... Code: -------------------- 1) Using the Active Cell R = ActiveCell.Row 2) Using a Range to find the First Row R = Range("A2") 'R = 2 R = Range("A34:Z1250") 'R = 34, the first row in the range 3) Using a Range to find the Last Row With Worksheets("Sheet1") 'R = last non blank cell in column A on Worksheet1 R = .Cells(.Rows.Count, "A").End(xlUp).Row End With -------------------- Sincerely, Leith Ross -- Leith Ross ------------------------------------------------------------------------ Leith Ross's Profile: http://www.excelforum.com/member.php...o&userid=18465 View this thread: http://www.excelforum.com/showthread...hreadid=564512 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Finding a value and returning corresponding info | Excel Discussion (Misc queries) | |||
Finding a Name on a list and returning all matching rows | Excel Worksheet Functions | |||
Finding a cell and returning value from a different row and column | Excel Discussion (Misc queries) | |||
Finding an item in a list & returning a specific value | Excel Worksheet Functions | |||
Finding, and returning data. | New Users to Excel |