+ Reply to Thread
Results 1 to 3 of 3

How Do You Take Data Off A Sheet and Store It In An Array

  1. #1
    Raleigh
    Guest

    How Do You Take Data Off A Sheet and Store It In An Array

    What is a good method of taking data out of an column and then storing that
    data in to an array until it reaches the end of the column.

  2. #2
    Toppers
    Guest

    RE: How Do You Take Data Off A Sheet and Store It In An Array

    Hi,

    Will this do?

    Dim arr As Variant

    arr = Range("a1:a" & Cells(Rows.Count, 1).End(xlUp).Row)

    For i = 1 To UBound(arr, 1)
    Debug.Print arr(i, 1)
    Next i

    Range("a1:a" & Cells(Rows.Count, 1).End(xlUp).Row)=arr



    "Raleigh" wrote:

    > What is a good method of taking data out of an column and then storing that
    > data in to an array until it reaches the end of the column.


  3. #3
    Tom Ogilvy
    Guest

    Re: How Do You Take Data Off A Sheet and Store It In An Array

    Dim rng as Range, v as Variant
    set rng = Range(Range("B1"),Range("B1").end(xldown))
    v = rng.Value
    now v is a 2D array

    v(1 to #rows,1 to 1)

    --
    Regards,
    Tom Ogilvy

    "Raleigh" <[email protected]> wrote in message
    news:[email protected]...
    > What is a good method of taking data out of an column and then storing

    that
    > data in to an array until it reaches the end of the column.




+ 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