Changing selected Inline Shape into a Shape with Wrap Format(wdWrapFront)

A

andreas

Word 2007, VBA

Dear Experts:

How can I change a selected Inline Shape into a Shape with Wrap Type
'wdWrapFront' using VBA?

Help is much appreciated. Thank you very much in advance. Regards,
Andreas
 
J

Jay Freedman

andreas said:
Word 2007, VBA

Dear Experts:

How can I change a selected Inline Shape into a Shape with Wrap Type
'wdWrapFront' using VBA?

Help is much appreciated. Thank you very much in advance. Regards,
Andreas

Sub x()
Dim oShp As Shape

If Selection.InlineShapes.Count > 0 Then
Set oShp = Selection.InlineShapes(1).ConvertToShape
oShp.WrapFormat.Type = wdWrapFront
End If
End Sub

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
A

andreas

Sub x()
    Dim oShp As Shape

    If Selection.InlineShapes.Count > 0 Then
        Set oShp = Selection.InlineShapes(1).ConvertToShape
        oShp.WrapFormat.Type = wdWrapFront
    End If
End Sub

--
Regards,
Jay Freedman
Microsoft Word MVP        FAQ:http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroupso
all may benefit.

Hi Jay,

that's it. Thank you very much for your professional help. Regards,
Andreas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top