Link to home
Start Free TrialLog in
Avatar of Scamquist
ScamquistFlag for United States of America

asked on

Update PowerPoint 2010 chart based on Access 2010 table or query

I have a number of PowerPoint 2010 slides that have charts based on Access 2010 tables or queries.

The base data changes daily.  However, when I close and reopen the PowerPoint presentation/slideshow, the data is not refreshed.

Is there a way (with code?) to force all of the slides to refresh without a warning box popping up?

Thank you in advance.
Avatar of John Wilson
John Wilson
Flag of United Kingdom of Great Britain and Northern Ireland image

I don't use Access but maybe this would work in PPT

Sub updater()
Dim osld As Slide
Dim oshp As Shape
For Each osld In ActivePresentation.Slides
For Each oshp In osld.Shapes
If oshp.Type = msoLinkedOLEObject Then
oshp.LinkFormat.Update
End If
Next
Next
End Sub

Open in new window

Avatar of Scamquist

ASKER

Stepping through the code, the line
If oshp.Type = msoLinkedOLEObject Then

fails and goes to the next slide.  No update
ASKER CERTIFIED SOLUTION
Avatar of John Wilson
John Wilson
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you.