|
|
|
|
|
|
Word
|
Convert Shape to InlineShape and vice verca
|
|
Ease of Use
|
Easy
|
Version tested with
|
2000, 2002
|
Submitted by:
|
MOS MASTER
|
Description:
|
One procedure to convert a Shape to a InlineShape and one Procedure to convert a InlineShape to a Shape.
|
Discussion:
|
Sometimes you've inserted a Shape to your document and you'd really wanted a InlineShape instead. These methods provide an easy way to convert them.
|
Code:
|
instructions for use
|
Option Explicit
Sub ConvertToShape()
With Selection
If .Type = wdSelectionInlineShape Then
.InlineShapes(1).ConvertToShape
End If
End With
End Sub
Sub ConvertToInlineShape()
With Selection
If .Type = wdSelectionShape Then
.ShapeRange(1).ConvertToInlineShape
End If
End With
End Sub
|
How to use:
|
- Open your Word document.
- Press Alt + F11 to open VBE.
- Insert-Module. (Insert -> module)
- Paste the code there in the window at right. (F7)
- Close VBE (Alt + Q or press the X in the top right hand corner).
- Save the file.
|
Test the code:
|
- Select a Shape or InlineShape in the document
- From Word, press Alt + F8 to open the macro dialog box.
- Select ConvertToInlineShape to convert a Shape
- Select ConvertToShape to convert a InlineShape
- Click Run.
|
Sample File:
|
Convert (inline) Shapes.zip 15.05KB
|
Approved by mdmackillop
|
This entry has been viewed 89 times.
|
|