+ Reply to Thread
Results 1 to 5 of 5

Combobox List - Which Property

  1. #1
    teresa
    Guest

    Combobox List - Which Property

    A simple question - how does one populate a combobox with a list of values:
    Client,Value, Revenue

    And then I will use:

    Private Sub ComboBox1_Click()
    If ComboBox1.Value = "Client" Then
    Call Client
    End If
    End Sub

    To call functions

    Thanks

  2. #2
    JulieD
    Guest

    Re: Combobox List - Which Property

    Hi

    one way is to code on the userform_initialize event

    ComboBox1.additem "Client"
    ComboBox1.additem "Value"
    ComboBox1.additem "Revenue"

    --
    Cheers
    JulieD
    check out www.hcts.net.au/tipsandtricks.htm
    ....well i'm working on it anyway
    "teresa" <teresa@discussions.microsoft.com> wrote in message
    news:6784E5BE-BEDF-4D7E-A720-C61C40590781@microsoft.com...
    >A simple question - how does one populate a combobox with a list of values:
    > Client,Value, Revenue
    >
    > And then I will use:
    >
    > Private Sub ComboBox1_Click()
    > If ComboBox1.Value = "Client" Then
    > Call Client
    > End If
    > End Sub
    >
    > To call functions
    >
    > Thanks




  3. #3
    teresa
    Guest

    Re: Combobox List - Which Property

    Julie,

    Forgive my ignorance - userform_initialize event?
    where do I actually code this.

    T


    "JulieD" wrote:

    > Hi
    >
    > one way is to code on the userform_initialize event
    >
    > ComboBox1.additem "Client"
    > ComboBox1.additem "Value"
    > ComboBox1.additem "Revenue"
    >
    > --
    > Cheers
    > JulieD
    > check out www.hcts.net.au/tipsandtricks.htm
    > ....well i'm working on it anyway
    > "teresa" <teresa@discussions.microsoft.com> wrote in message
    > news:6784E5BE-BEDF-4D7E-A720-C61C40590781@microsoft.com...
    > >A simple question - how does one populate a combobox with a list of values:
    > > Client,Value, Revenue
    > >
    > > And then I will use:
    > >
    > > Private Sub ComboBox1_Click()
    > > If ComboBox1.Value = "Client" Then
    > > Call Client
    > > End If
    > > End Sub
    > >
    > > To call functions
    > >
    > > Thanks

    >
    >
    >


  4. #4
    JulieD
    Guest

    Re: Combobox List - Which Property

    Hi Teresa

    it has just occured to me that you might not be using a combo box on a
    userform but directly in a worksheet ... if this is the case then if you
    created the combo box using the control toolbox toolbar then the property is
    LISTFILLRANGE where your three items are typed somewhere in three cells.

    if you are using a userform to present the combobox, then double click on
    the userform will get you into the userform code and then from the top right
    drop down box, choose initialize and put the code in there
    --
    Cheers
    JulieD
    check out www.hcts.net.au/tipsandtricks.htm
    ....well i'm working on it anyway
    "teresa" <teresa@discussions.microsoft.com> wrote in message
    news:1DD206F2-7349-4227-A01A-6D2A6BBD2196@microsoft.com...
    > Julie,
    >
    > Forgive my ignorance - userform_initialize event?
    > where do I actually code this.
    >
    > T
    >
    >
    > "JulieD" wrote:
    >
    >> Hi
    >>
    >> one way is to code on the userform_initialize event
    >>
    >> ComboBox1.additem "Client"
    >> ComboBox1.additem "Value"
    >> ComboBox1.additem "Revenue"
    >>
    >> --
    >> Cheers
    >> JulieD
    >> check out www.hcts.net.au/tipsandtricks.htm
    >> ....well i'm working on it anyway
    >> "teresa" <teresa@discussions.microsoft.com> wrote in message
    >> news:6784E5BE-BEDF-4D7E-A720-C61C40590781@microsoft.com...
    >> >A simple question - how does one populate a combobox with a list of
    >> >values:
    >> > Client,Value, Revenue
    >> >
    >> > And then I will use:
    >> >
    >> > Private Sub ComboBox1_Click()
    >> > If ComboBox1.Value = "Client" Then
    >> > Call Client
    >> > End If
    >> > End Sub
    >> >
    >> > To call functions
    >> >
    >> > Thanks

    >>
    >>
    >>




  5. #5
    teresa
    Guest

    Re: Combobox List - Which Property

    Julie - you're right,I was using this in a worksheet- so its the LISTFILLRANGE
    property that I have to use

    Thanks A Million

    "JulieD" wrote:

    > Hi Teresa
    >
    > it has just occured to me that you might not be using a combo box on a
    > userform but directly in a worksheet ... if this is the case then if you
    > created the combo box using the control toolbox toolbar then the property is
    > LISTFILLRANGE where your three items are typed somewhere in three cells.
    >
    > if you are using a userform to present the combobox, then double click on
    > the userform will get you into the userform code and then from the top right
    > drop down box, choose initialize and put the code in there
    > --
    > Cheers
    > JulieD
    > check out www.hcts.net.au/tipsandtricks.htm
    > ....well i'm working on it anyway
    > "teresa" <teresa@discussions.microsoft.com> wrote in message
    > news:1DD206F2-7349-4227-A01A-6D2A6BBD2196@microsoft.com...
    > > Julie,
    > >
    > > Forgive my ignorance - userform_initialize event?
    > > where do I actually code this.
    > >
    > > T
    > >
    > >
    > > "JulieD" wrote:
    > >
    > >> Hi
    > >>
    > >> one way is to code on the userform_initialize event
    > >>
    > >> ComboBox1.additem "Client"
    > >> ComboBox1.additem "Value"
    > >> ComboBox1.additem "Revenue"
    > >>
    > >> --
    > >> Cheers
    > >> JulieD
    > >> check out www.hcts.net.au/tipsandtricks.htm
    > >> ....well i'm working on it anyway
    > >> "teresa" <teresa@discussions.microsoft.com> wrote in message
    > >> news:6784E5BE-BEDF-4D7E-A720-C61C40590781@microsoft.com...
    > >> >A simple question - how does one populate a combobox with a list of
    > >> >values:
    > >> > Client,Value, Revenue
    > >> >
    > >> > And then I will use:
    > >> >
    > >> > Private Sub ComboBox1_Click()
    > >> > If ComboBox1.Value = "Client" Then
    > >> > Call Client
    > >> > End If
    > >> > End Sub
    > >> >
    > >> > To call functions
    > >> >
    > >> > Thanks
    > >>
    > >>
    > >>

    >
    >
    >


+ 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