Consulting

Results 1 to 2 of 2

Thread: Sleeper: Creating a one-dimensional array from a list on Excel.

  1. #1
    VBAX Newbie
    Joined
    Dec 2015
    Posts
    4
    Location

    Sleeper: Creating a one-dimensional array from a list on Excel.

    Hi everyone,

    I am trying to create two one-dimensional arrays that return the values in two columns given a specific criteria. I am a bit lost with this problem. Thanks in advance!

  2. #2
    Mac Moderator VBAX Guru mikerickson's Avatar
    Joined
    May 2007
    Location
    Davis CA
    Posts
    2,778
    Does this help?
    If not, what is losing you?
    Dim myOneDimensionalArray as Variant
    
    myOneDimensionalArray = Application.Transpose(Range("A1:A10").Value)
    
    ' or
    
    myOneDimensionalArray = Application.Transpose(Application.Transpose(Range("A1:Z1").Value))

Tags for this Thread

Posting Permissions

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