ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Array (https://www.excelbanter.com/excel-programming/275996-array.html)

excel

Array
 
Hi,
is it possible to create an array from all values of all range in a
selection?

Thanks



Bob Umlas[_3_]

Array
 
Su
Dim MyArray as Variant
MyArray=Range("A1:F3")
msgbox Ubound(MyArray,1) 'should say 3
Msgbox Ubound(MyArray,2) 'should say 6
Range("F5:K5")=MyArray 'will copy items to this new range

Bob Umlas
Excel MVP

"excel" wrote in message
...
Hi,
is it possible to create an array from all values of all range in a
selection?

Thanks






All times are GMT +1. The time now is 05:07 PM.

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