ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Please help with Range.Resize (https://www.excelbanter.com/excel-programming/416363-please-help-range-resize.html)

Alexey[_3_]

Please help with Range.Resize
 
I need to resize a Range from a Name object, but always receive errors.
....
ThisWorkbook.Names("data").RefersToRange.Rows.Resi ze(10)

What is the right way to do this?

Bob Phillips[_3_]

Please help with Range.Resize
 
Range("data").Resize(10).Name = "data"


--
__________________________________
HTH

Bob

"Alexey" wrote in message
...
I need to resize a Range from a Name object, but always receive errors.
...
ThisWorkbook.Names("data").RefersToRange.Rows.Resi ze(10)

What is the right way to do this?




Alexey[_3_]

Please help with Range.Resize
 
Thanks

"Bob Phillips" wrote:

Range("data").Resize(10).Name = "data"


--
__________________________________
HTH

Bob

"Alexey" wrote in message
...
I need to resize a Range from a Name object, but always receive errors.
...
ThisWorkbook.Names("data").RefersToRange.Rows.Resi ze(10)

What is the right way to do this?






All times are GMT +1. The time now is 03:02 AM.

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