ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Transferring part of a multi-dimensional array to a range in VBA (https://www.excelbanter.com/excel-programming/335652-transferring-part-multi-dimensional-array-range-vba.html)

Bob J.[_3_]

Transferring part of a multi-dimensional array to a range in VBA
 
I have a three-dimensional array (ex. TEST(1 To 2, 1 To 2, 1 To 360)) and I
want to transfer two dimensions (keeping the third as a constant) back to a
range. Is there any way to use the Value function to do this, instead of
creating a new two-dimensional array?
I tried: Sheets("FIRST").Range("FIRST").Value = TEST(1, 2, 360),
but I got a repetition of that one particular value. I can do it by
creating a new 2-D array, but this takes up a lot of code...Any help would be
appreciated...

Bob J.

Tom Ogilvy

Transferring part of a multi-dimensional array to a range in VBA
 
There is no support for what you describe.

--
Regards,
Tom Ogilvy

"Bob J." <Bob wrote in message
...
I have a three-dimensional array (ex. TEST(1 To 2, 1 To 2, 1 To 360)) and

I
want to transfer two dimensions (keeping the third as a constant) back to

a
range. Is there any way to use the Value function to do this, instead of
creating a new two-dimensional array?
I tried: Sheets("FIRST").Range("FIRST").Value = TEST(1, 2, 360),
but I got a repetition of that one particular value. I can do it by
creating a new 2-D array, but this takes up a lot of code...Any help would

be
appreciated...

Bob J.





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

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