+ Reply to Thread
Results 1 to 4 of 4

Real quick: AddItem with combo boxes?

  1. #1
    Registered User
    Join Date
    10-23-2005
    Posts
    4

    Real quick: AddItem with combo boxes?

    I'm brand new to VBA, literally picked up on it a couple minutes ago, it's great so far, but I've ran into confusement.

    I have a combo box on the spreadsheet, how do I add items to it? (not by cell values I mean), this is what I tried:

    Please Login or Register  to view this content.
    Thanks

  2. #2
    Bob Phillips
    Guest

    Re: Real quick: AddItem with combo boxes?

    I guess that this is a forms combo.

    Private Sub Worksheet_Activate()
    Activesheet.Dropdowns("dropHomeTeam").AddItem = "Minnesota Vikings"
    End Sub


    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "AVERAGE (user)" <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > I'm brand new to VBA, literally picked up on it a couple minutes ago,
    > it's great so far, but I've ran into confusement.
    >
    > I have a combo box on the spreadsheet, how do I add items to it? (not
    > by cell values I mean), this is what I tried:
    >
    >
    > Code:
    > --------------------
    >
    > Private Sub Worksheet_Activate()
    > dropHomeTeam.AddItem = "Minnesota Vikings"
    > End Sub
    >
    > --------------------
    >
    >
    > Thanks
    >
    >
    > --
    > AVERAGE(user)
    > ------------------------------------------------------------------------
    > AVERAGE(user)'s Profile:

    http://www.excelforum.com/member.php...o&userid=28294
    > View this thread: http://www.excelforum.com/showthread...hreadid=480030
    >




  3. #3
    paul
    Guest

    Re: Real quick: AddItem with combo boxes?

    combo box from control toolbar ???Forms is the one with input range and cell
    link for control
    --
    paul
    remove nospam for email addy!



    "Bob Phillips" wrote:

    > I guess that this is a forms combo.
    >
    > Private Sub Worksheet_Activate()
    > Activesheet.Dropdowns("dropHomeTeam").AddItem = "Minnesota Vikings"
    > End Sub
    >
    >
    > --
    >
    > HTH
    >
    > RP
    > (remove nothere from the email address if mailing direct)
    >
    >
    > "AVERAGE (user)" <[email protected]>
    > wrote in message
    > news:[email protected]...
    > >
    > > I'm brand new to VBA, literally picked up on it a couple minutes ago,
    > > it's great so far, but I've ran into confusement.
    > >
    > > I have a combo box on the spreadsheet, how do I add items to it? (not
    > > by cell values I mean), this is what I tried:
    > >
    > >
    > > Code:
    > > --------------------
    > >
    > > Private Sub Worksheet_Activate()
    > > dropHomeTeam.AddItem = "Minnesota Vikings"
    > > End Sub
    > >
    > > --------------------
    > >
    > >
    > > Thanks
    > >
    > >
    > > --
    > > AVERAGE(user)
    > > ------------------------------------------------------------------------
    > > AVERAGE(user)'s Profile:

    > http://www.excelforum.com/member.php...o&userid=28294
    > > View this thread: http://www.excelforum.com/showthread...hreadid=480030
    > >

    >
    >
    >


  4. #4
    Bob Phillips
    Guest

    Re: Real quick: AddItem with combo boxes?

    Then your code should work. Did you put the code in the worksheet code
    module?

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "paul" <[email protected]> wrote in message
    news:[email protected]...
    > combo box from control toolbar ???Forms is the one with input range and

    cell
    > link for control
    > --
    > paul
    > remove nospam for email addy!
    >
    >
    >
    > "Bob Phillips" wrote:
    >
    > > I guess that this is a forms combo.
    > >
    > > Private Sub Worksheet_Activate()
    > > Activesheet.Dropdowns("dropHomeTeam").AddItem = "Minnesota Vikings"
    > > End Sub
    > >
    > >
    > > --
    > >
    > > HTH
    > >
    > > RP
    > > (remove nothere from the email address if mailing direct)
    > >
    > >
    > > "AVERAGE (user)"

    <[email protected]>
    > > wrote in message
    > > news:[email protected]...
    > > >
    > > > I'm brand new to VBA, literally picked up on it a couple minutes ago,
    > > > it's great so far, but I've ran into confusement.
    > > >
    > > > I have a combo box on the spreadsheet, how do I add items to it? (not
    > > > by cell values I mean), this is what I tried:
    > > >
    > > >
    > > > Code:
    > > > --------------------
    > > >
    > > > Private Sub Worksheet_Activate()
    > > > dropHomeTeam.AddItem = "Minnesota Vikings"
    > > > End Sub
    > > >
    > > > --------------------
    > > >
    > > >
    > > > Thanks
    > > >
    > > >
    > > > --
    > > > AVERAGE(user)

    > >

    > ------------------------------------------------------------------------
    > > > AVERAGE(user)'s Profile:

    > > http://www.excelforum.com/member.php...o&userid=28294
    > > > View this thread:

    http://www.excelforum.com/showthread...hreadid=480030
    > > >

    > >
    > >
    > >




+ 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