EnableAsVbaControl Property
Specifies whether a variable object is registered in VBA and if you can use it in VBA scripts. For example, you may want to disable the registration of some variable objects in VBA if you do not need these objects in scripts or need to create event procedures for these objects (i.e. OnChange, OnFalse, or OnTrue). By minimizing the number of VBA objects, you optimize performance.
Syntax
object.EnableAsVbaControl [= Boolean]
Properties
The EnableAsVbaControl property syntax has these parts:
Part |
Description |
object |
An object expression that evaluates to an object in the Applies To list. |
Boolean |
Whether the object is registered in VBA and if it can be used in VBA scripts. |
Remarks
An example of how to set the EnableAsVbaControl property for a picture would be:
picture_name.object_name.EnableAsVbaControl False