Consulting

Results 1 to 2 of 2

Thread: VBA to advance PowerPoint Slide to Next slide

  1. #1
    VBAX Newbie
    Joined
    Mar 2006
    Posts
    2
    Location

    Question VBA to advance PowerPoint Slide to Next slide

    Please Help,
    I am trying to create a Macro that will update 116 slides in PowerPoint that contain charts created using MS Chart. The chart in each slide has data that is linked to data tables in an excel file. I am able to update the data in the chart tables in PowerPoint on open when clicking update links. The chart images however remain static and do not update unless, I click the chart in each slide to open and close again.
    I have been able to using the Macro recorder in Normal view create the following macro strings for slide 3 and slide 4.

    Slide 3:
    ActiveWindow.Selection.SlideRange.Shapes("Object 4").Select
    ActiveWindow.Selection.ShapeRange.OLEFormat.DoVerb Index:=1
    ActiveWindow.Selection.Unselect

    Slide 4:
    ActiveWindow.Selection.SlideRange.Shapes("Object 16").Select
    ActiveWindow.Selection.ShapeRange.OLEFormat.DoVerb Index:=1
    ActiveWindow.Selection.Unselect

    The piece I am missing is how to get the VBA to advance from slide 3 to 4. The recorder does not seem to record anything when I click between slides. Can someone help me locate the missing code that will enable me to complete this.
    Thank you,
    Dan

  2. #2
    VBAX Newbie
    Joined
    Mar 2006
    Posts
    2
    Location

    Solved I found VBA Code online that will advance my slide

    Solved

    I found code online that does the trick


    ActiveWindow.View.GotoSlide index:=4

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •