+ Reply to Thread
Results 1 to 5 of 5

Copy MultiSelections from a MultiColumn List Box to a Sheet range

  1. #1
    Registered User
    Join Date
    05-03-2012
    Location
    Missouri City, Texas
    MS-Off Ver
    Excel 2010
    Posts
    6

    Question Copy MultiSelections from a MultiColumn List Box to a Sheet range

    I have a table created by a MS-Query. The MS-Query is tied to a master SQL table. The MS-Query table is created dynamically based on a data range input by the worksheet user.

    The master table in SQL are all my physicians and their admission dates. The MS-Query creates a subset of the physicians who have had patients admitted based on the date parameters input by the user.

    I have a 2 column list box (lstSelector), columns Name and ID, tied to the named Table range (Providers).

    I want the user to be able to select multiple items from list box and paste them to a blank sheet called "DATA" in the workbook.

    The selected items will be used in a print command to only output a report for those physicians selected.

    I have been tinkering with many solutions but I have yet to find one that works.

    Can someone please help?

    Thank you

    Glen

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Copy MultiSelections from a MultiColumn List Box to a Sheet range

    Can you submit a copy of your workbook with all sensitive information replaced with non sensitive information.

  3. #3
    Registered User
    Join Date
    05-03-2012
    Location
    Missouri City, Texas
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Copy MultiSelections from a MultiColumn List Box to a Sheet range

    Here is the workbook.

    The name of the list box is named lstSelector
    The tab with the MS-Query is Provider Table. the named range is columns A:B
    The userform with the command button, Add Physician, is frmSelector.

    There is an attempt to code the On click command for the Add Physician button.

    Thanks

    Glen
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Copy MultiSelections from a MultiColumn List Box to a Sheet range

    You were really close with what you had:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    05-03-2012
    Location
    Missouri City, Texas
    MS-Off Ver
    Excel 2010
    Posts
    6

    Cool Re: Copy MultiSelections from a MultiColumn List Box to a Sheet range

    Thank you

    That worked perfectly

    Glen

+ 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. [SOLVED] Copy and Paste sheet into a range of sheets from list
    By adw223 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-20-2013, 01:11 PM
  2. Add value to sheet from a multicolumn combobox !
    By Petter120 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-22-2012, 06:50 AM
  3. Extract values from multicolumn list box
    By Newbie_Nick in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-19-2010, 03:32 AM
  4. Search Range, List Results in MultiColumn ListBox
    By LiamPotter in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-04-2008, 11:44 AM
  5. [SOLVED] Multicolumn Listbox with variable range
    By dht in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-11-2005, 03:06 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