View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.misc
[email protected] donoteventryremovespam@ameritech.net is offline
external usenet poster
 
Posts: 10
Default VBA to obtain Max Rows in any column in Used Reange

By golly he hits a home run! Thanks!


"Dana DeLouis" wrote:

Is there not a way to obtain the Max Rows in any column?


One idea...

Sub LastRow()
Dim LastRow As Long
LastRow = Cells.Find( _
What:="*", _
SearchOrder:=xlByRows, _
SearchDirection:=xlPrevious, _
MatchCase:=False).Row
End Sub