Thread: Last used row
View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.programming
Chip Pearson Chip Pearson is offline
external usenet poster
 
Posts: 7,247
Default Last used row

How do I get the integer value of the last row from the Range
LastRow ?


LastRow.Row


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


wrote in message
ups.com...
Thanks Chip.

Where almost there...

How do I get the integer value of the last row from the Range
LastRow ?

Dim LastRow As Range
Set LastRow = Cells(Rows.Count, "A").End(xlUp)



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


wrote in message
oups.com...
I need to loop through all the rows on a worksheet ...

There are patches where there are groups of existing but
unused
rows
...

How do I get the last used row in VBA?

Thanks.