Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

combobox in powerpoint

Status
Not open for further replies.

vgeng

Technical User
Feb 5, 2003
15
BE
I have the next code

Private Sub ComboBox2_DropButtonClick()
ComboBox2.Clear
ComboBox2.AddItem "a"
ComboBox2.AddItem "b"
ComboBox2.AddItem "c"
ComboBox2.AddItem "d"
ComboBox2.AddItem "e"
ComboBox2.AddItem "F"
ComboBox2.Style = fmStyleDropDownList
End Sub

But the only way I succeed to show the selected item in the "closed" combobox is to insert the next sub

Private Sub ComboBox2_Click()
MsgBox ComboBox2.Value
End Sub


Isn't there another way ?

G

 
Is there another thread this refers to? Could you explain what you are trying to do? Is there another way to do....what?

It appears you have clicking the dropdown button clearing the contents of the combobox, then populating it again.

Is this a combobox on a UserForm, or a combobox on a slide?

Gerry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top