PowerPoint listbox add items

  • Hi,

    I am unable to add items to a combobox in powerpoint. I need to add the items by default. means when I start the presentation ,the combo box will have the all items [Ex: a, b, c these 3 items should be in the combobox]. could anybody please help me?

    thanks in advance

    Regards
    Gopal

  • Re: Adding items to a combobox

    I dont know much abuot power point programming myself, but these 2 articles should help you.

    //support.microsoft.com/d…aspx?scid=kb;en-us;234184
    //support.microsoft.com/d…aspx?scid=kb;en-us;222703

    If you follow the sample code in each post step by step, understand them and merge the two, you should resolve this one.

    Ger

    _______________________________________________
    There are 10 types of people in the world. Those that understand Binary and those that dont.

    Why are Halloween and Christmas the same? Because Oct 31 = Dec 25...

    _______________________________________________

  • Re: Adding items to a combobox

    And also, give this page a look too... its non MS, so it might be more 'honest' :?

    //www.rdpslides.com/pptfaq/FAQ00004.htm

    Ger

    _______________________________________________
    There are 10 types of people in the world. Those that understand Binary and those that dont.

    Why are Halloween and Christmas the same? Because Oct 31 = Dec 25...

    _______________________________________________

  • Re: Adding items to a combobox

    Hi,

    I had a crack at this myself [out of pure curiosity]...

    If you Enter the code provided in the FIRST Microsoft Hyperlink above... knowledge base article 234184.

    //support.microsoft.com/d…aspx?scid=kb;en-us;234184

    And change the procedure listed in the article to read as follows:

    Private Sub appevent_SlideShowBegin[ByVal Wn As SlideShowWindow] 'keep this message box here as a debug mechanism until you are happy the code is running. 'This message box should appear Every time Powerpoint show is launched. 'Remove it when you know the code is working. MsgBox "you started a slideshow" 'delete any old entries in the combo box. For loopindex = Slide1.ComboBox1.ListCount - 1 To 0 Step -1 Slide1.ComboBox1.RemoveItem [loopindex] Next 'repopulate combo box with new entries. Slide1.ComboBox1.AddItem "Galway" Slide1.ComboBox1.AddItem "Duiblin" Slide1.ComboBox1.AddItem "Cork" End Sub Display More

    This assumes there is a combo box on the first slide called "Combobox1".

    I'm sure you can adapt as required.

    Ger

    _______________________________________________
    There are 10 types of people in the world. Those that understand Binary and those that dont.

    Why are Halloween and Christmas the same? Because Oct 31 = Dec 25...

    _______________________________________________

  • Newly created posts will remain inaccessible for others until approved by a moderator.

    The last reply was more than 180 days ago, this thread is most likely obsolete. It is recommended to create a new thread instead.

Video liên quan

Chủ Đề