Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
AVERAGE(user)
 
Posts: n/a
Default 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:


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

  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default 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)"
wrote in message
...

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   Report Post  
paul
 
Posts: n/a
Default 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)"
wrote in message
...

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   Report Post  
Bob Phillips
 
Posts: n/a
Default 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" wrote in message
...
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)"


wrote in message
...

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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Nesting Combo Boxes /Returning an Array ELMONDO SNITHER Excel Discussion (Misc queries) 1 June 30th 05 01:15 AM
Combo boxes and Protection [email protected] Excel Discussion (Misc queries) 0 June 27th 05 03:40 PM
connecting combo boxes to yield data in another cell. TxN8tv Excel Discussion (Misc queries) 0 March 14th 05 04:07 PM
dynamic combo boxes tjb Excel Worksheet Functions 2 January 25th 05 07:33 PM
How do I autofill combo boxes with their destination cell? Defoes Right Boot Excel Worksheet Functions 3 January 10th 05 12:49 PM


All times are GMT +1. The time now is 06:10 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"