ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Resize Dynamic Ranges (https://www.excelbanter.com/excel-programming/305458-resize-dynamic-ranges.html)

Frank Kabel

Resize Dynamic Ranges
 
Hi
try
rng1.resize(rng2.rows.count,rng2.columns.count)

-----Original Message-----
I have two ranges rng1 and rng2. These are two dynamic

ranges. I need to resize the rng1 according to rng2.

How can I set the size of rng1 to rng2 through VBA code?

Looking for help.

Thanks
.



All times are GMT +1. The time now is 12:32 AM.

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