OLEFormat.ClassType Property
Word Developer Reference |
Returns or sets the class type for the specified OLE object, picture, or field. Read/write String.
Syntax
expression.ClassType
expression A variable that represents a OLEFormat object.
Remarks
This property is read-only for linked objects other than DDE links.
You can see a list of the available applications in the Object type box on the Create New tab in the Object dialog box (Insert menu). You can find the ClassType string by inserting an object as an inline shape and then viewing the field codes. The class type of the object follows either the word "EMBED" or the word "LINK."
Example
This example loops through all the floating shapes on the active document and sets all linked Microsoft Excel worksheets to be updated automatically.
Visual Basic for Applications |
---|
|
See Also