当前模块不支持打印方法

并非所有方法属性都适合所有模块。 此错误的原因和解决方案如下:

  • 您试图对无法显示任何内容的对象使用 Print 方法。 例如,不能不加限定地在标准模块中使用 Print 方法。

    Remove the reference to the Print method, or qualify it with an appropriate object. For example, qualify it with the Debug object to display its arguments in the Immediate window during debugging.

  • 您试图对不能接受 Line, CirclePSetScale 方法的对象使用这些方法。 它们不能不加限定地出现在标准模块或自动类模块中。

有关其他信息,选择有问题的项并按 F1(在 Windows 中)或 HELP(在 Macintosh 上)。

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。