+ Reply to Thread
Results 1 to 11 of 11

Input Box User Selects Data

  1. #1
    Registered User
    Join Date
    08-19-2013
    Location
    New York, NY
    MS-Off Ver
    Excel 2003
    Posts
    77

    Input Box User Selects Data

    Does anybody know how to create a macro for when a user hits a button it will prompt an input box that the user can select which user they are from a list. Now with every user has an Id number. When the User Selects there name and hits ok then The user name will go to Column K and the User Id will go to Column L. The amount of files will vary so it will need to run in a loop until there is no more data found in Column D.

    For Demo purpose we can use the names John Doe, Jane Doe and with the user ID's of 2765, 8976.
    test.xlsm

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

    Re: Input Box User Selects Data

    It is not clear what the purpose of column D is

  3. #3
    Registered User
    Join Date
    08-19-2013
    Location
    New York, NY
    MS-Off Ver
    Excel 2003
    Posts
    77

    Re: Input Box User Selects Data

    Column D is basically my check point for the loop that will be needed. If no information is found in Column D then there are no more rows for the User,User Id to be entered. If there is another way to do this that is fine tho.

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

    Re: Input Box User Selects Data

    A loop of what? Your test work book only has data in column D. Do you want to loop through each data in column D and select a user / user id for each one?

  5. #5
    Registered User
    Join Date
    08-19-2013
    Location
    New York, NY
    MS-Off Ver
    Excel 2003
    Posts
    77

    Re: Input Box User Selects Data

    What I'm saying is I expect a loop to have to be put in for this to work. I'll have sheets that there will be 50 rows filled out or 1000 rows filled out. I would need for the user to choose there name from the list on the input box and when they do it updates the columns with their user name and user ID for all the rows found on the sheet with one click of the button. In the sample workbook it only has information in Column D. and the macro I'm trying to get help with is what will fill out the other columns.

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

    Re: Input Box User Selects Data

    K. Let me see if I got this right. You want the user to select a User Name from a list, which will have a single accompanying user id. That user name and user id will be inserted into each row (columns K & L respectively) for each row that has data in column D. Is this correct?

  7. #7
    Registered User
    Join Date
    08-19-2013
    Location
    New York, NY
    MS-Off Ver
    Excel 2003
    Posts
    77

    Re: Input Box User Selects Data

    Yes, I appreciate the help.

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

    Re: Input Box User Selects Data

    I did up a UserForm for you. Click the button on your main page.

    test (1).xlsm

  9. #9
    Registered User
    Join Date
    08-19-2013
    Location
    New York, NY
    MS-Off Ver
    Excel 2003
    Posts
    77

    Re: Input Box User Selects Data

    That works perfectly. Just one question where do I go I wanna change the code for the columns or the users?

  10. #10
    Registered User
    Join Date
    08-19-2013
    Location
    New York, NY
    MS-Off Ver
    Excel 2003
    Posts
    77

    Re: Input Box User Selects Data

    Nevermind I found it. I appreciate the help.

  11. #11
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Input Box User Selects Data

    Hi basketball

    Here's another approach
    Attached Files Attached Files
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

+ 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. Need VBA for INDEX MATCH where user selects all variables from Input Box
    By rrcrbnsn07 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-27-2013, 02:43 PM
  2. Quick and Dirty : User selects from dropdown (sht1)...macro populates data from (sht2)
    By Joecruz749 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-26-2013, 05:06 PM
  3. Save as - Data on a worksheet determines name, user selects where it is saved
    By ILoveStMartin in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-01-2013, 12:00 AM
  4. [SOLVED] UserForm to close when user selects 'enter data to spreadsheet'
    By david1987 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-09-2013, 08:15 AM
  5. help. Search based on text input in a column selects a row and copies data.
    By ridermarangoni in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-27-2012, 10:53 AM

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