问题描述
我有两种PC设置:
(所有原始文件)
我的问题是,为什么相同的VBA代码在2019年可以工作而在Outlook 2016中不能工作。问题出在Outlook还是其他版本的MS Win10版本上?
这部分代码无效:
gpg.verify_file()
ThisOutlookSession
更新 @nilton答案有效
解决方法
@nilton's answer in the comments的工作原理:
通常这是由于升级时忘记允许宏Enable or disable macros in Office files。