所选加载项尚未确认“命令行安全”,并且可能需要某些用户干预(可能 UI)The selected Add-In has not been confirmed to be 'Command Line Safe,' and may require some user intervention (possible UI)

此错误的原因及解决方案如下:This error has the following causes and solutions:

  • “命令行安全”意味着加载项的注册方式可指示其不包含在通过命令行调用 Visual Basic 时需要用户输入的用户界面。"Command-line safe" means that the add-in is registered in a way to indicate that it contains no user interfaces that require user input when Visual Basic is invoked through a command-line. 用户界面可影响无人参与的流程(如生成脚本)的操作。A user interface can interfere with the operation of unattended processes (such as build scripts). 如果不指明外接程序是命令行安全 (即使它_是_命令行安全), 则当用户在 "加载行为" 框中选择外接程序, 然后选择命令行时, 将收到警告消息。If you don't indicate that an add-in is command-line safe (even if it is command-line safe), when a user selects your add-in and then Command Line in the Load Behavior box, they'll receive the warning message. 这不是严重的问题,而只是警告用户所选的加载项可能包含可意外弹出的 UI 元素,并因等待用户输入而暂停其自动脚本。This isn't a serious problem, but merely a warning to the user that the selected add-in might possibly contain UI elements that can pop up unexpectedly and halt their automated scripts by pausing for user input. 若要说明加载项是命令行安全的,则按该方法创造加载项(可为此使用加载项设计器),或手动更改注册表项中的值。To specify that an add-in is command-line safe, author it that way (you can use the Add-In designer for this), or manually change the value in the registry key.

有关其他信息,选择有问题的项并按 F1(在 Windows 中)或 HELP(在 Macintosh 上)。For additional information, select the item in question and press F1 (in Windows) or HELP (on the Macintosh).

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.