Outlook 2016和2019中的VBA代码工作原理不同

问题描述

我有两种PC设置:

  1. 带有Outlook 2019 for Business的Win10 Pro Build 1909
  2. 带有Outlook 2016 for Business的Win10 Pro Build 2004

(所有原始文件

我的问题是,为什么相同的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