Thread: [Solved] Macro to format picture
View Single Post
 
Old 09-20-2018, 11:00 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

Your description is a bit vague. Try the following for a starting point:
Code:
Sub Macro1()
With Selection
  If .InlineShapes.Count <> 1 Then Exit Sub
  With .InlineShapes(1)
    With .Borders
      .Enable = True
      .OutsideLineWidth = wdLineWidth300pt
      .OutsideLineStyle = wdLineStyleSingle
      .OutsideColorIndex = wdGray50
    End With
    .Shadow.Visible = True
    .Shadow.Style = msoShadowStyleOuterShadow
    .Shadow.Size = .Height
    .ConvertToShape
  End With
  .ShapeRange(1).WrapFormat.Type = wdWrapTopBottom
End With
End Sub
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote