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.

For additional information, select the item in question and press F1 (in Windows) or HELP (on the Macintosh).

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.