Frame.LockAnchor property (Word)

True if the specified frame is locked. Read/write Boolean.

Syntax

expression. LockAnchor

expression Required. A variable that represents a 'Frame' object.

Remarks

The frame anchor indicates where the frame will appear in Normal view. You cannot reposition a locked frame anchor.

Example

This example locks the anchor of the first frame in section two of the active document.

Set myRange = ActiveDocument.Sections(2).Range 
If TypeName(myRange) <> "Nothing" And myRange.Frames.Count > 0 Then 
 myRange.Frames(1).LockAnchor = True 
End If

See also

Frame Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.