ConvertToFrame Method Example

This example creates a text box using the selected text, and then it converts the text box to a frame.

If Selection.Type = wdSelectionNormal Then
    Selection.CreateTextbox
    Selection.ShapeRange.ConvertToFrame
End If