+ Reply to Thread
Results 1 to 3 of 3

Populating textbox using a combo box

  1. #1
    Registered User
    Join Date
    06-27-2011
    Location
    Calgary, Alberta
    MS-Off Ver
    Excel 2007
    Posts
    6

    Populating textbox using a combo box

    Hi,

    I am new to VBA and have been trying to work this code to populate a textbox using a combo box.

    The combo box is created using a dynamic range so that new data will automatically update onto it. The Range everything2 is also a dynamic range that updates itself when new entries are added.

    My makemodel.value contains text about the certain asset and is the combo box that i want to be able to change to populate numberious other information points based around that specific asset.

    The "unit.value" is a textbox that was renamed into unit because thats where i want the units to be placed. I have other ones such as category, description but these will be dealt with after i have populated at least 1 textbox.

    In the end i would that when my combo box is changed via the drop down menu the userform automatically updates the information contained within the txt boxes. My ultimate goal is that the text boxes can then be changed and the asset ledger would be updated. I would post the sheet but it contains to much sensitive information.

    Thanks in advance and if anyone needs anymore information let me know!

    Please Login or Register  to view this content.
    Last edited by Leith Ross; 07-20-2011 at 02:02 PM. Reason: Added Code Tags

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Populating textbox using a combo box

    Hello Mr.Steel,

    Welcome to the Forum!

    If you can, you should post the workbook. Please remove or change any information of a personal nature or what your company might consider to be confidential. If you need to scale down the workbook then it should be faithful to original in data layout, formulas, and any VBA code. Please include before and after examples of the data along with any comments.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Populating textbox using a combo box

    If you load the combobox with the multidimensional dynamic range

    Please Login or Register  to view this content.
    It's easy to populate the text box

    Please Login or Register  to view this content.



+ 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