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
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.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for