copy a 2 dimensional array to a range

A

avi

Hello,

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

Thanks
Avi
 
R

Rick Rothstein

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)
 
A

avi

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top