+ Reply to Thread
Results 1 to 2 of 2

Populate texbox from multiple comboboxes

  1. #1
    Registered User
    Join Date
    01-22-2014
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    25

    Populate texbox from multiple comboboxes

    Hi,

    I want to populate a textbox to read what was inputted into three other textboxes.

    So far I have a change event that puts the value into a textbox as follows

    Please Login or Register  to view this content.
    I'd like to add some code so that TextFullName also displays the values from two additional comboboxes named ComboSpecies and ComboAuthor.

    So if I entered "Pinus" into ComboGenus, "strobus" into ComboSpecies, and "Linnaeus" into ComboAuthor, then TextFullName would display "Pinus strobus Linnaeus" with the first two words italicized.

    Also, I was wondering if ComboGenus was entered as "Pinus" and nothing else, then TextFullName would display "Pinus sp."

    Any help would be greatly appreciated.

    Marc

  2. #2
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Populate texbox from multiple comboboxes

    You could use this

    Please Login or Register  to view this content.
    but the only problem will be that you first have to fill other 2 CB's before using the Change event of ComboGenus.

    Or something like this.

    Please Login or Register  to view this content.
    Last edited by bakerman2; 02-03-2017 at 01:42 PM.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

+ 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] How can I populate a TextBox with various inputs from ComboBoxes?
    By bralew in forum Excel Programming / VBA / Macros
    Replies: 23
    Last Post: 10-17-2016, 09:06 AM
  2. Populate and use ComboBoxes like filters
    By chowee21 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-03-2014, 11:23 PM
  3. [SOLVED] Populate 5 comboboxes with values 1 - 10.
    By EMyk08 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-03-2014, 03:12 PM
  4. [SOLVED] showing message box if the result of texbox doesn't match with the range then clear texbox
    By hamidrezaxy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-20-2013, 01:04 PM
  5. Initialize event to populate two Comboboxes?
    By fcb1900 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-21-2010, 05:01 PM
  6. Populate Dynamic ComboBoxes
    By gmcconnell in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 06-11-2009, 05:01 AM
  7. UserForm with Multiple ComboBoxes Populate
    By RobertCo in forum Excel General
    Replies: 2
    Last Post: 12-27-2006, 01:51 PM

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