+ Reply to Thread
Results 1 to 3 of 3

Set a 2D arrray data into a range, given the top-left cell

Hybrid View

  1. #1
    Tom Chau
    Guest

    Set a 2D arrray data into a range, given the top-left cell

    Hi all,

    I hope to ask whether there is some convenient way to assign a 2D array
    data into a range by specifiying the top-left cell (e.g., A1). I'm
    looking for something like "CopyFromRecordset".

    Would any body have previous experience on that? Is the looping really
    necessary?

    Thanks a lot.

    Tom


  2. #2
    Jim Cone
    Guest

    Re: Set a 2D arrray data into a range, given the top-left cell

    Tom,
    Range("A1").Resize(UBound(MyArray, 1), UBound(MyArray, 2)).Value = MyArray
    --
    Jim Cone
    San Francisco, USA
    http://www.realezsites.com/bus/primitivesoftware


    "Tom Chau" <[email protected]>
    wrote in message
    Hi all,
    I hope to ask whether there is some convenient way to assign a 2D array
    data into a range by specifiying the top-left cell (e.g., A1). I'm
    looking for something like "CopyFromRecordset".
    Would any body have previous experience on that? Is the looping really
    necessary?
    Thanks a lot.
    Tom


  3. #3
    Tom Chau
    Guest

    Re: Set a 2D arrray data into a range, given the top-left cell

    Hi Jim,

    It works very well. Thanks a lot.

    Tom


    Jim Cone wrote:
    > Tom,
    > Range("A1").Resize(UBound(MyArray, 1), UBound(MyArray, 2)).Value = MyArray
    > --
    > Jim Cone
    > San Francisco, USA
    > http://www.realezsites.com/bus/primitivesoftware
    >
    >
    > "Tom Chau" <[email protected]>
    > wrote in message
    > Hi all,
    > I hope to ask whether there is some convenient way to assign a 2D array
    > data into a range by specifiying the top-left cell (e.g., A1). I'm
    > looking for something like "CopyFromRecordset".
    > Would any body have previous experience on that? Is the looping really
    > necessary?
    > Thanks a lot.
    > Tom



+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1