マクロを含むWordフアイルに証明書を付けてもWordフアイルが実行が出来ない。

信一 宮澤 0 Reputation points
2023-02-08T00:15:37.0833333+00:00

3601ba40-068a-45ac-8f59-5b0897edace8

自作マクロを含むWordフアイル(拡張子:docm)にデジタル署名証明書を付けても、一度保存後はマクロが実行が出来ません、何処を修正すれば良いでしょうか。

 

Microsoht資料の「マクロを有効にする警告を無効にする」などを参考に下記の設定です。

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\16.0 \Word\Security

「SkipSignatureCheckForUnsafeVBA」/「SkipSignatureCheckForUnsafeWLL」/VBAWarnings=3

「はがき印刷ウイザード」で作成後に**一度保存をして開いた場合、**働かないマクロが有りますが、それと同じ現象です。

VBAWarnings=1にすれば一度保存をして開いた場合、でもマクロは働きます

Windowsのバージョン(Windows 10 Home / 22H2)

Wordのバージョン(Word 2016 MSO バージョン 2301)32bit

Word
Word
A family of Microsoft word processing software products for creating web, email, and print documents.
667 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Emily Hua-MSFT 27,526 Reputation points
    2023-02-08T03:12:01.62+00:00

    Hi @信一 宮澤

    Currently in Microsoft Q&A we only support English, could you please edit your question into English?Thanks for your understanding.

    Via Translation tool, I got following infromation.

    Capture15

    Do your files stored on a file share or network server?

    If so, please refer to 'Macros from the internet will be blocked by default in Office'.

    If the steps above do not work, please try following registry. (Serious problems might occur if you modify the registry incorrectly. Before you modify it, please remember to back up the registry for restoration in case problems occur.)

    HKCU\SOFTWARE\Microsoft\Office\16.0\Word\Security\

    Key: BlockContentExecutionFromInternet

    DWORD Value = 0


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.