Sub InsertAndFormat()
Dim sh As Shape
Dim ilsh As InlineShape
Set ilsh = ActiveDocument.InlineShapes.AddPicture("C:\My Pictures\Picture1.jpg", False, True, Selection.Range)
ilsh.PictureFormat.Contrast = 0.6
Set sh = ilsh.ConvertToShape
sh.WrapFormat.Type = wdWrapNone
sh.WrapFormat.AllowOverlap = True
sh.WrapFormat.Side = wdWrapBoth
sh.ZOrder msoSendBehindText
End Sub
|