ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Find Range for Pasting of Records (https://www.excelbanter.com/excel-programming/351468-find-range-pasting-records.html)

Kou Vang[_2_]

Find Range for Pasting of Records
 
I am pasting data into inserted columns. How do I figure out the range of
the records that I have so I know when to stop pasting down the new inserted
columns?

A B C D E
x x
x x
x x
x x
x x

I would have to count column "D" and find the corresponding last row with
data correct?

Toppers

Find Range for Pasting of Records
 
lastrow=Cells(rows.count,"D").End(xlup).row will give you the last row in
column D

"Kou Vang" wrote:

I am pasting data into inserted columns. How do I figure out the range of
the records that I have so I know when to stop pasting down the new inserted
columns?

A B C D E
x x
x x
x x
x x
x x

I would have to count column "D" and find the corresponding last row with
data correct?



All times are GMT +1. The time now is 09:03 PM.

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