Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
avi avi is offline
external usenet poster
 
Posts: 195
Default copy a 2 dimensional array to a range

Hello,

What would be the most fastest way to copy a 2 dimensional array (rXc)
to a range starting at cell A1?

Thanks
Avi
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default copy a 2 dimensional array to a range

What would be the most fastest way to copy a 2 dimensional
array (rXc) to a range starting at cell A1?


Let's say your array's name is ARR. Assuming your array is one-based (not
zero-based), then this line of code will do what you asked for...

Range("A1").Resize(UBound(Arr, 1), UBound(Arr, 2)) = ARR

Rick Rothstein (MVP - Exce)

  #3   Report Post  
Posted to microsoft.public.excel.programming
avi avi is offline
external usenet poster
 
Posts: 195
Default copy a 2 dimensional array to a range

On 25 oct, 19:27, "Rick Rothstein"
wrote:
What would be the most fastest way to copy a 2 dimensional
array (rXc) to a range starting at cell A1?


Let's say your array's name is ARR. Assuming your array is one-based (not
zero-based), then this line of code will do what you asked for...

Range("A1").Resize(UBound(Arr, 1), UBound(Arr, 2)) = ARR

Rick Rothstein (MVP - Exce)


Many thanks. It works !

Avi
Reply
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
Sort 2 dimensional Array, copy a row Neal Zimm Excel Programming 2 March 8th 10 06:30 AM
Assigning named range to a 2-dimensional array Bob Excel Programming 5 September 4th 07 11:28 AM
Insert into a range from a two dimensional array [email protected][_2_] Excel Programming 13 May 29th 07 06:29 AM
Load excel range into multi dimensional array Rishi Dhupar Excel Programming 1 January 26th 06 03:50 PM
Transferring part of a multi-dimensional array to a range in VBA Bob J.[_3_] Excel Programming 1 July 27th 05 03:38 PM


All times are GMT +1. The time now is 04:03 PM.

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

About Us

"It's about Microsoft Excel"