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.

Upvotes: 1

Views: 493

Answers (2)

Martin
Martin

Reputation: 1

Maybe this works: Workbook.Application.Quit

Upvotes: 0

Martin
Martin

Reputation: 1

Try Workbook.quit instead of Workbook.close

Upvotes: 0

Related Questions