WrapFormat.Type property (Publisher)
Specifies how text wraps around the specified shape. Read/write.
Syntax
expression.Type
expression A variable that represents a WrapFormat object.
Remarks
The Type property value can be one of the PbWrapType constants declared in the Microsoft Publisher type library.
Example
The following example adds an oval to the active publication and specifies that the publication text wrap around both the left and right sides of the square that surrounds the oval.
Sub SetTextWrapType()
Dim shpOval As Shape
Set shpOval = ActiveDocument.Pages(1).Shapes.AddShape( _
Type:=msoShapeOval, Left:=36, Top:=36, _
Width:=100, Height:=35)
With shpOval.TextWrap
.Type = pbWrapTypeSquare
.Side = pbWrapSideBoth
End With
End Sub
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.