LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Update Charts using VBA


I have some Powepoint charts that are linked to Excel that should update
after I select it but it's not working. There are four charts to a
slide. The first chart on the page flickers and briefly shows the
changes but reverts back to the old data. The three other charts on
the page does not update at all. In order to update them now I need to
double click each chart on each slide for the update to occur. My
sample code is attached below. Any help will be greatly appreciated.



Sub RefreshTest()
Dim slide As slide
Dim shape As shape
Dim Graph As Object

On Error Resume Next

For Each slide In Application.ActivePresentation.Slides
For Each shape In slide.shape
If shape.Type = msoEmbeddedOLEObject Then
If shape.OLEFormat.ProgID = "MSGraph.Chart.8" Then
Then Update
Set Graph = shape.OLEFormat.Object
Graph.Application.Update
End If
End If
Next shape
Next slide

End Sub


--
Lizz45ie
------------------------------------------------------------------------
Lizz45ie's Profile: http://www.excelforum.com/member.php...o&userid=23410
View this thread: http://www.excelforum.com/showthread...hreadid=376318

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why won't the charts update? Renee Excel Discussion (Misc queries) 2 January 29th 09 05:18 PM
link excel charts to web pages and update charts automatically Signguy Charts and Charting in Excel 1 April 22nd 08 08:29 PM
Update charts hong Charts and Charting in Excel 1 October 14th 06 10:32 PM
Update charts hong Charts and Charting in Excel 0 October 13th 06 08:12 PM
Charts won't update pwermuth Charts and Charting in Excel 8 July 15th 05 07:32 PM


All times are GMT +1. The time now is 07:28 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"