Share via


OLEFormat.ActivateAs Method

Sets the Windows registry value that determines the default application used to activate the specified OLE object.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Sub ActivateAs ( _
    ClassType As String _
)
'Usage
Dim instance As OLEFormat
Dim ClassType As String

instance.ActivateAs(ClassType)
void ActivateAs(
    string ClassType
)

Parameters

  • ClassType
    Type: System.String
    Required String. The name of the application in which an OLE object is opened. To see a list of object types that the OLE object can be activated as, click the object and then open the Convert dialog box (Edit menu, Object submenu). 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."

See Also

Reference

OLEFormat Interface

OLEFormat Members

Microsoft.Office.Interop.Word Namespace