ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Locating end of coloumn to add more data (https://www.excelbanter.com/excel-programming/337668-locating-end-coloumn-add-more-data.html)

Junkyard Engineer

Locating end of coloumn to add more data
 
I'm transferring data from different sheets to one summary sheet.

I want to add at the bottom of the list. How can I find the range position
(it would be row in my case) so I can start my counter to that value ?

tia



Chip Pearson

Locating end of coloumn to add more data
 
Try something like the following:

Dim LastRow As Long
LastRow = ActiveSheet.Cells(Rows.Count, "A").End(xlUp).Row + 1
Debug.Print LastRow


Change the "A" to whatever column is relevant.


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



"Junkyard Engineer" wrote in
message ...
I'm transferring data from different sheets to one summary
sheet.

I want to add at the bottom of the list. How can I find the
range position (it would be row in my case) so I can start my
counter to that value ?

tia






All times are GMT +1. The time now is 10:30 AM.

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