LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Quick way of copying Range to (sub)Array ?

dim a1(1 to 2, 1 to 3)
a1=range("a1:c3")

loads values from the selected range into the 2D array. Is there an
elegant way of doing the same sort of thing with a 2D subset of a 3D array?

dim a2(1 to 2, 1 to 3, 1 to 2)
a2(,,2)=range("a1:c3")

The left hand side of the last statement is syntactically incorrect but
hopefully serves to demonstrate what I am trying to achieve. I'd like to
avoid having to use a loop to load values into the array one element at
a time.

Regards, John M
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying Array Formulas dhstein Excel Discussion (Misc queries) 1 April 1st 09 12:55 AM
Is there a quick way to delete all the controls in a range? Hubitron2000 Excel Discussion (Misc queries) 4 March 24th 06 05:59 PM
Copying an Array BDH Excel Worksheet Functions 0 February 21st 06 04:11 AM
Copying an Array Formula montagu Excel Discussion (Misc queries) 1 July 15th 05 07:30 PM
Copying an array formula... Dennis G. Excel Worksheet Functions 12 January 3rd 05 02:49 AM


All times are GMT +1. The time now is 10:29 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"