View Single Post
 
Old 07-19-2011, 07:53 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi Peter,

Try something like:
Code:
Sub Demo()
Dim Shp As Shape, Rng As Range
Set Rng = Selection.Range
Selection.Copy
Selection.Collapse
Set Shp = ActiveDocument.Shapes.AddCallout(Type:=msoCalloutOne, _
        Left:=100, Top:=40, Width:=150, Height:=75)
With Shp.TextFrame.TextRange
  .PasteAndFormat (wdFormatOriginalFormatting)
  .Style = "MyStyle"
End With
With Shp
  .Anchor.Cut
  Selection.Paste
  .WrapFormat.Type = wdWrapSquare
  .RelativeVerticalPosition = wdRelativeVerticalPositionParagraph
  .Top = 0
End With
Rng.Select
End Sub
Change 'MyStyle' to suit.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote