运行时无法执行属性集(错误 382)Property Set can't be executed at run time (Error 382)

可能无法在运行时获取对属性的引用。此错误具有以下原因和解决方法:It may not be possible to obtain a reference to a property at run time.This error has the following cause and solution:

  • 您尝试在运行时获取对只读或只写属性的引用。You tried to get a reference to a property that's either read-only or write-only at run time. 由于您可以对读取和写入使用引用,因此属性必须同时为两个操作提供运行时支持,您才能在运行时获得引用。Since you can use a reference for both reading and writing, the property must provide run-time support for both operations for a reference to be obtained at run time.

有关其他信息,选择有问题的项并按 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.