locked
Loop through objects on Powerpoint slide RRS feed

  • Question

  • I am trying to loop through all shapes on all slides of a Powerpoint presentation.

    I found the following code in the help but I get an error. " Run-time '429' ActiveX component can't create object".

     

    For Each sld In ActivePresentation.Slides

    For Each sh In sld.Shapes

    ' do something

    Next

    Next

     

    Can anyone help me?

    Tuesday, April 20, 2010 1:42 PM

Answers

  • Solved this.

    I didn't have the Presentation open.

    lol.

    • Marked as answer by Gazza101 Tuesday, April 20, 2010 2:02 PM
    Tuesday, April 20, 2010 2:02 PM

All replies

  • Solved this.

    I didn't have the Presentation open.

    lol.

    • Marked as answer by Gazza101 Tuesday, April 20, 2010 2:02 PM
    Tuesday, April 20, 2010 2:02 PM
  • Thanks for sharing the information.  :)

     


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Monday, April 26, 2010 10:21 AM