ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Range object to Array object conversion (https://www.excelbanter.com/excel-programming/273263-re-range-object-array-object-conversion.html)

Alan Beban[_3_]

Range object to Array object conversion
 
You haven't provided enough information to identify the problem, like
how MyArray1 was declared, and what happens when it "doesn't work"--like
what's the error message?

Alan Beban

Yogesh wrote:
HI ,
The following code works fine :
'eg. of array being assigned to a range object
.Range("A1:A2").Value = MyArray
'just wanted to know whether the reverse is possible
' i.e. something like ---
' MyArray1 = .Range("A1:A3") 'This not working with VBA

Thanks,
Yogesh




All times are GMT +1. The time now is 08:01 PM.

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