ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Finding the last cell in a series (https://www.excelbanter.com/excel-programming/367669-finding-last-cell-series.html)

Arne Hegefors

Finding the last cell in a series
 
How do you find the last cell in a series i.e. in a column? I have heard that
there is a simple command that does it but I dont know what it is. Please
help me!

Tom Ogilvy

Finding the last cell in a series
 
Dim lastCell as Range
Dim col as Long

Col = 5
Set lastcell = Cells(rows.count,col).end(xlup)

msgbox "Last used cell in column E is " & lastcell.Address

--
Regards,
Tom Ogilvy


"Arne Hegefors" wrote:

How do you find the last cell in a series i.e. in a column? I have heard that
there is a simple command that does it but I dont know what it is. Please
help me!



All times are GMT +1. The time now is 12:14 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com