ShowObjectAnchors Property

Microsoft Word Visual Basic

ShowObjectAnchors Property

       

True if object anchors are displayed next to items that can be positioned in print layout view. Read/write Boolean.

expression.ShowObjectAnchors

expression   Required. An expression that returns a View object.

Example

This example adds a frame around the selection, switches the active window to print layout view, and shows object anchors for framed objects.

Selection.Frames.Add(Range:=Selection.Range).LockAnchor = True
With ActiveDocument.ActiveWindow.View
    .Type = wdPrintView
    .ShowObjectAnchors = True
End With