+ Reply to Thread
Results 1 to 4 of 4

Pull all values from UserForm List Box and Paste them to Dynamic Array in Worksheet

  1. #1
    Forum Contributor
    Join Date
    03-30-2016
    Location
    Gillette, WY
    MS-Off Ver
    Office 365
    Posts
    230

    Pull all values from UserForm List Box and Paste them to Dynamic Array in Worksheet

    Hi all,

    Lost again.

    I have two List Boxes, LstBx_ColorsAvailable and LstBx_ColorsSelected. The user adds values from ColorsAvailable to ColorsSelected. The Add Flower button then finds the first available column and set the values in

    Row 1 = TxtBx_LatinName
    Row 2 = TxtBx_Common Name
    Rows 3 to Row n = all values in LstBx_ColorsSelected where n is the count of all values in the list box

    The first two operation for LatinName and CommonName are working but I'm lost on how to add the values from the list box to the sheet.

    Please Login or Register  to view this content.
    My initial post for this project can be found at:
    HTML Code: 
    Thank you for the help.
    Last edited by TFiske; 01-30-2018 at 10:55 AM. Reason: Added link to initial post per forum rules

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,943

    Re: Pull all values from UserForm List Box and Paste them to Dynamic Array in Worksheet

    Since you have added the values to the listbox "LstBx_ColorsSelected", and want them all, then you could replace this section of code:

    Please Login or Register  to view this content.
    with code like

    Please Login or Register  to view this content.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Forum Contributor
    Join Date
    03-30-2016
    Location
    Gillette, WY
    MS-Off Ver
    Office 365
    Posts
    230

    Re: Pull all values from UserForm List Box and Paste them to Dynamic Array in Worksheet

    Thank you. I thought it would be something like that but I didn't know I could define the syntax for the .Cells argument that easily. Thank you.

  4. #4
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,943

    Re: Pull all values from UserForm List Box and Paste them to Dynamic Array in Worksheet

    You're welcome - I'm happy that I was able to help

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 5
    Last Post: 11-07-2016, 07:49 AM
  2. [SOLVED] listing array values in a dynamic list based on 2 criteria from ranges
    By lkeltner in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-14-2016, 01:45 PM
  3. VB UserForm ComboBox List Based On Dynamic Named Range in Worksheet
    By huntethic in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-14-2015, 02:45 PM
  4. Getting values from dynamic textboxes on userform in array
    By nasdrasil in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-27-2014, 03:53 PM
  5. Paste Values from Userform into Worksheet
    By mrmoc85 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-14-2013, 02:47 AM
  6. Selecting two dynamic ranges and paste values only combining into one list
    By jbellows in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-27-2012, 05:36 PM
  7. paste values from named dynamic range to another worksheet
    By Nate H in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-25-2006, 02:50 PM

Tags for this Thread

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