简体   繁体   中英

vba powerpoint chart workbook close

I developed a macro in vba - updating excel data into powerpoint charts. This was running successfully for the past 6 years. It will copy each selection of data from excel into powerpoint chart workbook and close the chart workbook and go to next chart. 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". I update 1000 charts weekly in average.

The same macro runs successfully in my another laptop, which has the older version of windows 10 with updates switched off.

Any help will greatly appreciated.

Thanks and Regards, Balu.

Try Workbook.quit instead of Workbook.close

Maybe this works: Workbook.Application.Quit

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