Command: convert to frame
Converts the specified shape to a frame. Returns a
object that represents the new frame.
convert to frame shape Required. An expression that returns a shape object.
Shapes that don't support attached text cannot be converted to frames. For pictures, use the
to inline shape
In the current version of Word, frames have been replaced by text boxes.
This example creates a text box using the selected text, and then it converts the text box to a frame.
if selection type of selection is selection normal then
create textbox selection
convert to frame text box 1 of active document
Command: convert to inline shape
Converts the specified shape in the drawing layer of a document to an inline shape in the text layer.
You can convert only shapes that represent pictures. This command returns an
that represents the picture.
convert to inline shape shape Required. An expression that returns a shape object.
Shapes that support attached text cannot be converted to inline shapes. For these shapes, use the
convert to frame
This example converts each picture in MyDoc.doc to an inline shape.
repeat with s in (get shapes in document "MyDoc.doc")
if shape type of s is shape type picture then
convert to inline shape s
Command: convert to shape
Converts an inline shape to a free-floating shape. Returns a
object that represents the new
convert to shape inline shape Required. An expression that returns an inline shape object.
This example converts the first inline shape in the active document to a floating shape.
convert to shape inline shape 1 of active document