DEV Community

Adam L
Adam L

Posted on

Answer: VBA to apply style to all images in Word doc

The following should work,

Dim pic As InlineShape
For Each pic In ActiveDocument.InlineShapes
  pic.Borders.OutsideLineStyle = wdLineStyleSingle
  pic.Borders.OutsideLineWidth = wdLineWidth050pt
Next

Top comments (0)