See Also
Applies To
OLE control.
Description
Occurs when an object's data has been modified.
Syntax
Sub OLE_Updated (Code As Integer)
Remarks
Code indicates how the OLE object was updated. Its possible values are:
Value Constant Description
0 OLE_CHANGED The object's data has changed.
1 OLE_SAVED The object's data has been saved by the application that created the object.
2 OLE_CLOSED The file containing the linked object's data has been closed by the application that created the object.
3 OLE_RENAMED The file containing the linked object's data has been renamed by the application that created the object.
This event is useful for determining if an object's data has been changed since it was last saved. To do this, set a global variable in the Updated event indicating the object needs to be saved. When you save the OLE object, reset the variable. The constants are defined in the Visual Basic file CONSTANT.TXT.
Action Property
Class Property
OleType Property
OleTypeAllowed Property
UpdateOptions Property