+ Reply to Thread
Results 1 to 4 of 4

Write UserForm text box value to cell based on multiple list box selections

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

    Write UserForm text box value to cell based on multiple list box selections

    Hi all,

    I thought this would be just a quick, easy project but I'm stuck.

    I have a UserForm list box that is populated with Employee First and Last names. The User then selects a piece of equipment from a drop down and enters the date that those employees were trained on the equipment. The goal is to populate the worksheet with the date that each employee selected in the multiselect list box was trained on a given piece of equipment.

    I've tried several versions of the following code but I can only get the first selected employee to populate. I've attached a desensitized workbook. Thank you.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Write UserForm text box value to cell based on multiple list box selections

    Quick test shows, the line below was giving the wrong address !!!
    Please Login or Register  to view this content.

  3. #3
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,626

    Re: Write UserForm text box value to cell based on multiple list box selections

    Try this.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  4. #4
    Forum Contributor
    Join Date
    03-30-2016
    Location
    Gillette, WY
    MS-Off Ver
    2016
    Posts
    220

    Re: Write UserForm text box value to cell based on multiple list box selections

    Norie, thank you. It appears to work exactly as I intended. Appreciate it. I will mark this as solved.

+ 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: 10
    Last Post: 08-12-2017, 09:57 AM
  2. VBA code to find and delete cell contents based on userform combobox selections
    By anfdrew in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-06-2013, 04:13 PM
  3. [SOLVED] Update respective cell values in the table based on Multiple Drop Down list selections.
    By nileshpatil in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-16-2012, 09:30 AM
  4. [SOLVED] Update respective cell value based on Multiple Drop Down list selections
    By nileshpatil in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-16-2012, 08:43 AM
  5. Multiple Selections from listboxes in Userform into single cell as comma delimited?
    By rorybecers in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-31-2011, 06:28 PM
  6. List Box Selections Outputting Multiple Selections with One Click
    By Mordred in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-21-2011, 12:27 PM
  7. Multiple selections from a pick list - only unique selections (no repeats) ?
    By opsayo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-24-2011, 06:25 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