Share via


Comment.Edit Method

Word Developer Reference

Opens the specified OLE object for editing in the application it was created in.

Syntax

expression.Edit

expression   Required. A variable that represents a Comment object.

Example

This example opens (for editing) the first embedded OLE object (defined as a shape) on the active document.

Visual Basic for Applications
  Dim shapesAll As Shapes

Set shapesAll = ActiveDocument.Shapes If shapesAll.Count >= 1 Then If shapesAll(1).Type = msoEmbeddedOLEObject Then shapesAll(1).OLEFormat.Edit End If End If

This example opens (for editing) the first linked OLE object (defined as an inline shape) in the active document.

Visual Basic for Applications
  Dim colIS As InlineShapes

Set colIS = ActiveDocument.InlineShapes If colIS.Count >= 1 Then If colIS(1).Type = wdInlineShapeLinkedOLEObject Then colIS(1).OLEFormat.Edit End If End If

See Also