+ Reply to Thread
Results 1 to 6 of 6

Read a named range into an array

Hybrid View

  1. #1
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    You probably don't need to get the column reference, as there are easy ways to find the position once you have made a selection.

    Bit hard without an example file to know your structure, but if you have a range called mths then the code below may help

    Dim arr As Variant
      arr = Range("mths")
      ActiveSheet.ListBox1.List = WorksheetFunction.Transpose(arr)
    If you need more guidance, then build an example file, put it up onto the post, and you will probably get more detailed code to suit your situation.


    HTH

    rylo

  2. #2
    Registered User
    Join Date
    03-27-2006
    Posts
    70
    You packed several things new to me in that short space; I am looking forward to experimenting with them!

    I am still tooling with lengthy for/next structures with offsets as I could not recall the relationship between a named range and an array, which gives you a rough idea how far away I was from what you are showing me...

+ 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