+ Reply to Thread
Results 1 to 2 of 2

Populating an array with selected ListBox items

  1. #1
    Registered User
    Join Date
    03-02-2008
    Posts
    39

    Populating an array with selected ListBox items

    I am trying to populate an array with the items a user selected in a userform listbox. Below is my current code but it is not working, I keep getting a subscript out of range error on the following line "SelItems(k) = .List(i)"

    Please Login or Register  to view this content.
    I'm sure I am making a simple error but I am unable to figure it out and it is driving me crazy! Any help would be much appreciated.

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Populating an array with selected ListBox items

    You created a 2D array so you have to use:
    Please Login or Register  to view this content.
    Remember what the dormouse said
    Feed your head

+ 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