![]() |
#1
|
|||
|
|||
![]()
I have a VBA subroutine running in an Excel spreadsheet, that copies a table of values from that spreadsheet to the data table of a chart in a PPTX slide. The PPTX presentation is open and visible. The script uses
Code:
Set chartShapeChart = chartShape.Chart Set chartDataWorkbook = chartShapeChart.ChartData.Workbook chartShapeChart.ChartData.Activate Code:
chartShapeChart.Refresh chartDataWorkbook.Close False However for some reason the chart does not update/refresh as it's supposed to. After the VBA script completes, I need to manually open the data editor in order for the chart to refresh the graphical elements. Note that the data copy is correct, and opening the data editor manually and then closing it without any further edits to the data is all that's needed to refresh the chart. Is this a known issue with PPTX charts, or am I missing something? Any pointers would be appreciated. |
#2
|
|||
|
|||
![]()
Do you need the chart to update on your slide when its being presented or just when editing?
|
#3
|
|||
|
|||
![]()
I would like it to update the chart as the script runs. I found out that updating the chart data table WITHOUT activating it first seems to work, although for some reason it's slower.
|
#4
|
|||
|
|||
![]()
Yeah that makes sense. If you are in editing mode in PowerPoint the refresh objects works differently then when you are in presentation mode. If you are in editing mode it should work no problem. Presentation mode though, you may need to call GoToSlide in your VBA right after updating the chart to get it to "refresh"
|
![]() |
Tags |
chart problem, chartdata, vba |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Graphic shapes are not updating when external Excel data is updated | cjs | Visio | 0 | 12-29-2021 06:29 PM |
Can we update Chart in PPT based on a table in the excel and the table is part of the Chart Data | nareshj | PowerPoint | 0 | 07-12-2018 02:29 PM |
![]() |
AD1983 | PowerPoint | 2 | 10-18-2016 06:26 AM |
Help with updating chart within PPT presentation | EFGEE | PowerPoint | 0 | 04-25-2011 07:00 AM |
Updating Excel Chart Links | fermat | PowerPoint | 0 | 07-09-2010 04:29 PM |