+ Reply to Thread
Results 1 to 5 of 5

Input box to update combo box

  1. #1
    HFB
    Guest

    Input box to update combo box

    I have a combo box with several choices in it including "other". I would
    like to make it so that when the "other" option is selected, an input box
    appears. When the user types in the details and presses enter, I want the
    stuff they've typed to show as the selection in the combo box.

    If that can't be done, then I'd like the input box to update a text box
    below the combo box with the inputted data.

    How to?


  2. #2
    Chip
    Guest

    Re: Input box to update combo box

    do you know how to make a userform?


  3. #3
    HFB
    Guest

    Re: Input box to update combo box

    yes

    "Chip" wrote:

    > do you know how to make a userform?
    >
    >


  4. #4
    Tom Ogilvy
    Guest

    Re: Input box to update combo box

    Private Sub Combobox1_Click()
    if Combobox1.Value = "Other" then
    res = Inputbox("enter special selection")
    if res <> "" then
    combobox1.Value = res
    End if
    End if
    End Sub

    Make sure the style of the combobox is fmStyleDropDownCombo
    This is the default, so if you haven't changed it you should be OK.

    --
    Regards,
    Tom Ogilvy


    "HFB" <[email protected]> wrote in message
    news:[email protected]...
    > yes
    >
    > "Chip" wrote:
    >
    > > do you know how to make a userform?
    > >
    > >




  5. #5
    HFB
    Guest

    Re: Input box to update combo box

    BEAUTIFUL! Thanks heaps Tom

    "Tom Ogilvy" wrote:

    > Private Sub Combobox1_Click()
    > if Combobox1.Value = "Other" then
    > res = Inputbox("enter special selection")
    > if res <> "" then
    > combobox1.Value = res
    > End if
    > End if
    > End Sub
    >
    > Make sure the style of the combobox is fmStyleDropDownCombo
    > This is the default, so if you haven't changed it you should be OK.
    >
    > --
    > Regards,
    > Tom Ogilvy
    >
    >
    > "HFB" <[email protected]> wrote in message
    > news:[email protected]...
    > > yes
    > >
    > > "Chip" wrote:
    > >
    > > > do you know how to make a userform?
    > > >
    > > >

    >
    >
    >


+ 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