简体   繁体   English

vba powerpoint图表工作簿关闭

[英]vba powerpoint chart workbook close

I developed a macro in vba - updating excel data into powerpoint charts.我在 vba 中开发了一个宏 - 将 excel 数据更新为 powerpoint 图表。 This was running successfully for the past 6 years.这在过去 6 年中一直成功运行。 It will copy each selection of data from excel into powerpoint chart workbook and close the chart workbook and go to next chart.它会将 excel 中的每个数据选择复制到 powerpoint 图表工作簿中,并关闭图表工作簿和 go 到下一个图表。 But - two days before, after some windows or office updates from microsoft, the powerpoint chart workbook is not closing and gave the error message "close method of workbook failed".但是 - 两天前,在一些 windows 或 Microsoft 的 Office 更新之后,PowerPoint 图表工作簿没有关闭,并给出错误消息“工作簿的关闭方法失败”。 I update 1000 charts weekly in average.我平均每周更新 1000 个图表。

The same macro runs successfully in my another laptop, which has the older version of windows 10 with updates switched off.相同的宏在我的另一台笔记本电脑上成功运行,该笔记本电脑的旧版本 windows 10 更新已关闭。

Any help will greatly appreciated.任何帮助将不胜感激。

Thanks and Regards, Balu.谢谢和问候,巴鲁。

Try Workbook.quit instead of Workbook.close尝试 Workbook.quit 而不是 Workbook.close

Maybe this works: Workbook.Application.Quit也许这有效:Workbook.Application.Quit

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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