PersistsEvents property
Indicates whether an object is capable of containing persistent events in its EventList collection.
Version added
4.1
Syntax
| |
intRet |
Integer. False (0) if this object cannot contain persistent events; True (1) if it can. |
object |
Required. An expression that returns an object in the Applies to list. |
Remarks
Every object that has an EventList property also has a PersistsEvents property. To be persistable, an event's action code must be visActCodeRunAddon, but it must also be in the EventList collection of an object whose PersistsEvents property is True. The only objects that currently persist events are Document, Master, and Page objects.
Whether a persistable event actually does persist depends on the value of its Persistent property.