Share via


MoveOutOfTextFlow Method [Publisher 2003 VBA Language Reference]

Moves a given inline shape out of its containing text range, defined by TextRange Object, and makes the shape fixed.

expression.MoveOutOfTextFlow()

expression Required. An expression that returns one of the objects in the Applies To list.

Remarks

An automation error is returned if the shape to be moved is not already inline.

After the MoveOutOfTextFlow method is called on an inline shape, the shape will maintain its position on the page, but it will no longer be inline.

Example

The following example moves the first inline shape contained in a given text range out of the text flow.

Dim theShape As Shape

Set theShape = ActiveDocument.Pages(2).Shapes(1) _
    .TextFrame.TextRange.InlineShapes(1)

theShape.MoveOutOfTextFlow

Applies to | Shape Object | ShapeRange Collection