ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   End of rows in a column (https://www.excelbanter.com/excel-programming/434497-end-rows-column.html)

Philosophaie

End of rows in a column
 
I would like to know how to find the Row # of the last non-empty cell in a
column.

Jacob Skaria

End of rows in a column
 
'Last row filled in Column A
lngLastRow = ActiveSheet.Cells(Rows.Count, "A").End(xlUp).Row

'Last col filled in Row1
lngLastCol = ActiveSheet.Cells(1, Columns.Count).End(xlToLeft).Column

If this post helps click Yes
---------------
Jacob Skaria


"Philosophaie" wrote:

I would like to know how to find the Row # of the last non-empty cell in a
column.



All times are GMT +1. The time now is 09:13 AM.

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