当我将 Word 文件作为对象插入到 PowerPoint 中时,Word 文件中的宏不再起作用

问题描述 投票:0回答:1

我需要帮助。我正在尝试将包含宏的 Word 文件嵌入到将分发给多个人的 PowerPoint 演示文稿中,但是一旦将其作为对象插入到 PowerPoint 中,并且我打开该对象,Word 宏就根本不起作用。

你知道为什么吗?我怎样才能保持我的宏正常运行?

这是我的 Word 文件中 ActiveX 按钮中的 VBA 代码:

    Private Sub CommandButton1_Click()
    CopierTextePressePapier
    MsgBox "Vous avez bien copié le code pour le batiment PRINCIPAL", vbInformation, "Confirmation"
End Sub
vba ms-word powerpoint activex embedding
1个回答
0
投票

在为 Microsoft Office 应用程序启用了

Block macros from running in Office files from the Internet
组策略设置的环境中,嵌入文件中的宏将被阻止运行。

例如,您可能会收到以下安全通知:

Microsoft Office has identified a potential security concern.

Macros in this document have been disabled by your enterprise administrator for security reasons.   

要解决此问题,请将嵌入的或原始 Office 文件保存到受信任的位置。

有关

Block macros from running in Office files from the Internet
组策略设置的详细信息,请参阅Office 2016 中的新功能可以阻止宏并帮助防止感染

© www.soinside.com 2019 - 2024. All rights reserved.