Connecting Tech Pros Worldwide Help | Site Map

Powerpoint Combo-boxes

Member
 
Join Date: Oct 2007
Posts: 102
#1: Jul 28 '09
Hello Everyone!

Thank you for taking the time to view my question! I have a powerpoint slide that I have put a combobox on. In code, I populate the combo box when the user clicks on the drop-down arrow. The code seems to be working fine, however... :)

When the user clicks the drop down arrow, only 1 record is showing. If they click it a second time, it lists all 13-14 records. Why is it doing this? I want all 13-14 records to show the first time the user clicks on the drop-down arrow.

What am I missing??

Here is my code...Thanks for all of your help!!

Expand|Select|Wrap|Line Numbers
  1. Private Sub cmb92_GotFocus()
  2.  
  3. With cmb92
  4.     .Clear
  5.     .AddItem ("3/8 OHSW")
  6.     .AddItem ("7 #8 AW OHSW")
  7.     .AddItem ("0.555 OPGW (Fiber Optic)")
  8.     .AddItem ("101.8 HS ACSR (River)")
  9.     .AddItem ("2/0 ACSR OHSW")
  10.     .AddItem ("397.5 26/7 ACSR")
  11.     .AddItem ("795 26/7 ACSR")
  12.     .AddItem ("795 45/7 ACSR")
  13.     .AddItem ("1033.5 45/7 ACSR")
  14.     .AddItem ("1351.5 54/9 ACSR")
  15.     .AddItem ("795 26/7 SSAC/ACSS")
  16.     .AddItem ("1033.5 45/7 SSAC/ACSS")
  17.     .AddItem ("1351.5 54/19 SSAC/ACSS")
  18. End With
  19.  
  20. End Sub
  21.  
Member
 
Join Date: Oct 2007
Posts: 102
#2: Jul 28 '09

re: Powerpoint Combo-boxes


I figured it out...Instead of

Expand|Select|Wrap|Line Numbers
  1. Private Sub cmb92_GotFocus()
  2.  
It's supposed to be

Expand|Select|Wrap|Line Numbers
  1. Private Sub cmb92_DropButtonClick()
  2.  
Reply