+ Reply to Thread
Results 1 to 7 of 7

Textboxes within Userform to display info based on combobox selection

  1. #1
    Registered User
    Join Date
    08-14-2012
    Location
    Utah, United States
    MS-Off Ver
    Excel 2010
    Posts
    19

    Textboxes within Userform to display info based on combobox selection

    Hi everyone,

    I have posted similar threads with no luck. Please help me solve this problem.

    Attached is a sample of what I am working with. I have a userform that I want to display certain information from within the spreadsheet based on the combobox selection. Then, I want to be able to type new data into those same text boxes where the info is displayed and have that change the cells within the spreadsheet from where the data was originally pulled.

    First, how do I get the userform to display data based on the combox selection?

    Second, (if it is possible) how can I make that data changeable from within the same userform?

    I am just learning VB and have been stuck on this problem for almost a week! Please help!

    Thanks!
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    05-28-2012
    Location
    Pittsburgh, Pa
    MS-Off Ver
    Excel 2003 - 2007 -2010
    Posts
    49

    Re: Textboxes within Userform to display info based on combobox selection

    You were on the correct track.

    I just made a few minor modifications.

    Try this and see if this is the functionality you want.

    cplmckenzie
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    08-14-2012
    Location
    Utah, United States
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Textboxes within Userform to display info based on combobox selection

    cplmckenzie,

    That worked perfectly! Thank you so much, this is a huge help!

  4. #4
    Registered User
    Join Date
    05-28-2012
    Location
    Pittsburgh, Pa
    MS-Off Ver
    Excel 2003 - 2007 -2010
    Posts
    49

    Re: Textboxes within Userform to display info based on combobox selection

    Since this has resolved your issue.

    Please mark this thread as resolved.

    cplmckenzie

  5. #5
    Registered User
    Join Date
    08-14-2012
    Location
    Utah, United States
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Textboxes within Userform to display info based on combobox selection

    cplmckenzie,

    I have one more issue that I didn't see until I tried to apply all of your code to my actual document.

    I will attach an updated sample worksheet - I have a "percentage of total sales" row beneath my "projected sales" row.

    Is there any way to make the code skip every other row?

  6. #6
    Registered User
    Join Date
    08-14-2012
    Location
    Utah, United States
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Textboxes within Userform to display info based on combobox selection

    Here is the updated sample spreadsheet.

    Thanks again for all of your help.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    05-28-2012
    Location
    Pittsburgh, Pa
    MS-Off Ver
    Excel 2003 - 2007 -2010
    Posts
    49

    Re: Textboxes within Userform to display info based on combobox selection

    alter54,

    Try this and see if it works.

    If so, please mark thread as solved.

    cplmckenzie
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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