简体   繁体   中英

Copy charts from Excel to PowerPoint using VBA

I have a slide deck that changes it's name daily. The source data is in several statically named Excel 2013 worksheets. It would be neater to run a macro from the PPTM but all the examples I have found for copying charts is from the XLSM side. Is there a PowerPoint 2013 equivalent of PowerPoint.Application ? Dim sourceXL As excel.Application gives Run-time error '424': Oject required as Excel is not recognised whereas .Application is.

Have you set a reference to Excel? In the VBE, go to the Tools menu > References, scroll down to Microsoft Excel, and check the box.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM