Powerpoint中的文档恢复窗格 [英] Document Recovery Pane in Powerpoint

查看:159
本文介绍了Powerpoint中的文档恢复窗格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好

我正在Excel中开发一些VBA代码。在这段代码中,我打开(在后台)一个Powerpoint实例。我是这样做的(后期绑定):

I'm developing some VBA code in Excel. In this code I open (in background) a Powerpoint instance. I do it this way (late binding):

Set ppt = CreateObject("Powerpoint.Application")
ppt.Presentations.Open PPTName, WithWindow:=False




然后我做了很多事情PowerPoint没有改变任何东西。当我完成后,我运行此代码:

Then I do many things with the PowerPoint without changing anything. When I finish, I run this code:

With ppt.Presentations(PPTName)
    .Saved = True
    .Close
End With
ppt.Quit
DoEvents
Set ppt = Nothing

此代码避免保存/不保存对话框。它工作正常。

This code avoids the save/no save dialog. And it works fine.

我的问题是恢复窗格中有一些文档。在这种情况下,Excel挂起,并且Powerpoint不会停止。原因是有一个打开的对话框要求用户保留或删除恢复文档。但是由于我在后台打开了Powerpoint,
对话框没有出现。

My problem is when there's some document in the Recovery Pane. In this case, Excel hangs, and Powerpoint don't stop. The reason is there's an open dialog asking the user to keep or delete the recovery documents. But since I opened Powerpoint in background, the dialog doesn't show up.

有没有办法回答"保留文件"通过VBA避免Excel冻结?

Is there a way to answer "keep documents" via VBA to avoid Excel freezing?

提前谢谢

推荐答案

您好Cronaueres,

Hi Cronaueres,

感谢您访问我们的论坛。

Thanks for visiting our forum.

然后这里我们主要关注Office客户端的一般问题和反馈。由于您的查询与VBA代码相关,我们会将您的主题移至以下专用于Excel的MSDN论坛:

Then here we mainly focus on general questions and feedback about Office client. As your query is related to VBA code, we'll move your thread to the following dedicated MSDN forum for Excel:



祝您好运,

Yuki Sun


Best regards,
Yuki Sun


这篇关于Powerpoint中的文档恢复窗格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆