E
Elizabeth via OfficeKB.com
I created over 200 charts that I need to update on a monthly basis. There
are four charts to on each slide. The charts are linked to Excel. I would
like to use VBA to update the presentation. I tried the attached code but
it only update the first chart on each page.
Sub RefreshTest()
Dim sl As Slide
Dim sh As Shape
On Error Resume Next
For Each sl In Application.ActivePresentation.Slides
sl.Select
For Each sh In sl.Shapes
sh.OLEFormat.DoVerb 1
ActiveWindow.Selection.Unselect
Next sh
Next sl
End Sub
are four charts to on each slide. The charts are linked to Excel. I would
like to use VBA to update the presentation. I tried the attached code but
it only update the first chart on each page.
Sub RefreshTest()
Dim sl As Slide
Dim sh As Shape
On Error Resume Next
For Each sl In Application.ActivePresentation.Slides
sl.Select
For Each sh In sl.Shapes
sh.OLEFormat.DoVerb 1
ActiveWindow.Selection.Unselect
Next sh
Next sl
End Sub