+ Reply to Thread
Results 1 to 9 of 9

Textbox value to add item in Combobox

  1. #1
    Forum Contributor
    Join Date
    02-26-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    367

    Textbox value to add item in Combobox

    Is there any way to add item in combobox based on textbox value?

    For example:

    I have a textbox, Combobox and Commandbutton. When i enter a data in textbox and click the Commandbutton, that data will add in Combobox.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,652

    Re: Textbox value to add item in Combobox

    Maybe something like this...

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    02-26-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    367

    Re: Textbox value to add item in Combobox

    Hi AlpaFrog, it works! how do i permanently saved the new item in combobox? when i add new item and close the workbok, combobox was back to zero item.

  4. #4
    Forum Contributor
    Join Date
    02-26-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    367

    Re: Textbox value to add item in Combobox

    Could you please provide me the code for that?

  5. #5
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644
    You need to save the items somewhere, perhaps a worksheet.

    Then when you open the form next time populate the combobox with the saved items.
    Last edited by Norie; 04-14-2013 at 07:25 PM.
    If posting code please use code tags, see here.

  6. #6
    Forum Contributor
    Join Date
    02-26-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    367

    Re: Textbox value to add item in Combobox

    i have this code, how do i link the combobox items in range?

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    02-26-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    367

    Re: Textbox value to add item in Combobox

    Can anyone help me on this?

  8. #8
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,652

    Re: Textbox value to add item in Combobox

    Please Login or Register  to view this content.

  9. #9
    Forum Contributor
    Join Date
    02-26-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    367

    Re: Textbox value to add item in Combobox

    Hi Alphafrog, perfect! thanks a million! by the way could you please help me with my other thread regarding textbox events? Here's the link of my other thead: http://www.excelforum.com/excel-prog...html?p=3193799

+ 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