+ Reply to Thread
Results 1 to 6 of 6

user input single selection using range use combobox/ListBox

  1. #1
    Registered User
    Join Date
    07-12-2013
    Location
    toronto, canada
    MS-Off Ver
    Excel 2007 & MAC excel 2011
    Posts
    46

    user input single selection using range use combobox/ListBox

    Hello All, I have a spreadsheet template (Template Input) where I could Backup the template to another sheet (Template Backup) (1 row per template) based on template name supplied by user input. I have set column "A" of Template Backup sheet to an array TempName with refers to=OFFSET(Template Backup!$A$2,0,0,MAX(COUNT(Sheet1!$A:$A),1),1).

    A B C
    1 TempName Task# RITM#
    2 Blank N/A N/A
    3 IanW TASK2212788 RITM1689676
    4 Melissa TASK2025699 RITM1529465
    5 DavidP TASK2054857 RITM1554441

    Now to restore a template I have a simple user input box to say what template name you want to restore, which works fine for me since I know which templates were created and the name used, or the next person can go to the template backup sheet look at the names and go back to the form to run the restore macro (obviously not very functional or user friendly).

    My idea was to create and user input box listing the template names available to restore and have the user select the 1 then need, not sure how to do this and what to use a Combo Box or List Box or something else all together?
    Last edited by iggypop; 11-05-2018 at 03:23 PM.

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,833

    Re: user input single selection using range use combobox/ListBox

    Try the attached file. Keep in mind that when you backup a template name, it adds it to the bottom of Template Backup. This can create duplicate Template Names in the Backup. If you want to replace the existing Template name in backup, please let me know and I will modify the macro. Click on A30 or B30 in the Input sheet and select a name.
    Attached Files Attached Files
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Registered User
    Join Date
    07-12-2013
    Location
    toronto, canada
    MS-Off Ver
    Excel 2007 & MAC excel 2011
    Posts
    46

    Re: user input single selection using range use combobox/ListBox

    Thank you Mumps1, works well on your spreadsheet not on mine, keep getting an error when I choose a name to restore "Ambiguous name detected: worksheet_change

    Also, I wanted to keep the user input function for the Template Backup cause they can backup multiple templates under the same name ie. Alan prj1, Alan prj2...

    I am wondering, can you have more than 1 worksheet change on a sheet, I already have a worksheet change for my multi-select drop down list, could that be the issue?

    Hi Mumps1, I was correct, seems the issue is that I already have a worksheet event for my input tab, it is used for rows B14, B15 & B16, it allows those cells to allow for multiple names if required, ie. approver1, approver 2, approver3 (when an order is over the first approvers limit, then the next higher approver is added ....etc).

    I took the liberty of adding my worksheet event to your spreadsheet and received the same error message, I have looked at the code but I am not sure how to merge then, but will keep trying.
    Attached Files Attached Files
    Last edited by iggypop; 11-06-2018 at 12:31 AM.

  4. #4
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,833

    Re: user input single selection using range use combobox/ListBox

    You can have only one Worksheet_Change event. I combined both events into one.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    07-12-2013
    Location
    toronto, canada
    MS-Off Ver
    Excel 2007 & MAC excel 2011
    Posts
    46

    Re: user input single selection using range use combobox/ListBox

    Wow, that is beautiful, thank you Mumps1, works like a charm, fast and much more efficient, much appreciated, sorry, wish I could give more reps but it will not let me.

  6. #6
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,833

    Re: user input single selection using range use combobox/ListBox

    My pleasure.

+ 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] Filter ListBox based on ComboBox selection
    By nimesh29 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-25-2017, 03:14 PM
  2. Replies: 0
    Last Post: 12-10-2014, 11:30 AM
  3. Command button to request user input (selection) of a range of cells
    By KarlGramith in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-01-2013, 05:37 PM
  4. Replies: 1
    Last Post: 06-03-2013, 06:30 AM
  5. User Form Controls - Connect ComboBox Selection to Listbox
    By wstring in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-15-2013, 04:15 PM
  6. With Selection Input Cell Value or Range into User Form
    By bdb1974 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-04-2010, 05:36 PM
  7. Replies: 0
    Last Post: 11-30-2005, 12: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