使用VBA从Powerpoint中的Excel刷新嵌入式图表
我已经创建了以下代码,但我需要包括刷新幻灯片9中的图表使用VBA从Powerpoint中的Excel刷新嵌入式图表,excel,vba,powerpoint,Excel,Vba,Powerpoint,我已经创建了以下代码,但我需要包括刷新幻灯片9中的图表 Set oPPApp = CreateObject(, "PowerPoint.Application") With oPPApp .Presentations.Open "C:\Users\jmarqu7\Documents\PPT FTL NAR\Carrier Meeting Template - FTL - Test.pptx", Untitled:=msoTrue With .Act
Set oPPApp = CreateObject(, "PowerPoint.Application")
With oPPApp
.Presentations.Open "C:\Users\jmarqu7\Documents\PPT FTL NAR\Carrier Meeting Template - FTL - Test.pptx", Untitled:=msoTrue
With .ActivePresentation
.UpdateLinks
.SaveAs Filename:="C:\Users\jmarqu7\Documents\PPT FTL NAR\" & NewCat & ".pptx"
.Close
End With
End With
你能帮我找出我需要使用的命令吗
谢谢您可以使用形状对象的LinkFormat属性的更新方法。例如,假设pptPres引用了您的演示文稿,并且图表位于第9张幻灯片上,并且它被称为“图表1”,请尝试 “嵌入”和“链接”是不同的。你问的是链接图表,而不是嵌入式图表。
pptPres.Slides(9).Shapes("Chart 1").LinkFormat.Update