none
Adding ActiveX control to powerpoint via Interop. RRS feed

  • Question

  • I have an ActiveX control that installed on my machine, and can be added from PowerPoint via:

    Developers->Controls->More Controls->"My control".  
    I want the user to be able to add the ActiveX (my control) via Custom button on the Ribbon.  
    I successfully added a button to my custom Ribbon (VSTO). but I can't find a way to make this button adding "My Control" to the slide.
    I also successfully added an Excel sheet by calling:  

        Shapes.AddOLEObject(1, 1, 100, 100, "Excel.Sheet", "", MsoTriState.msoFalse, "", 0, "", MsoTriState.msoFalse);

    but I can't fint the appropriate way to add my custom ActiveX.

      
    Tuesday, July 30, 2013 7:55 AM

Answers

  • Hi Guy,

    Have you tried recording a macro?

    I know that PowerPoint's macro recording is disabled but if you can record it from Excel, the VBA code generated should be similar.


    Kind Regards, Rich ... http://greatcirclelearning.com

    Thursday, August 1, 2013 1:01 PM

All replies

  • Hi Guy,Could you please give more info about your ActiveX control?

    Because not all ActiveX controls can be used directly on worksheets; some can be used only on Microsoft Visual Basic for Applications (VBA) UserForms. When you work with these controls, Excel would display the message Cannot insert object if you try to add them to a worksheet.



    deny to access the Microsoft. build. evaluation.n project.

    Thursday, August 1, 2013 7:59 AM
  • Hi Guy,

    Have you tried recording a macro?

    I know that PowerPoint's macro recording is disabled but if you can record it from Excel, the VBA code generated should be similar.


    Kind Regards, Rich ... http://greatcirclelearning.com

    Thursday, August 1, 2013 1:01 PM