View Single Post
 
Old 03-20-2017, 05:31 AM
stewarto stewarto is offline Windows 10 Office 2016
Novice
 
Join Date: Mar 2017
Location: Haarlem, Netherlands
Posts: 4
stewarto is on a distinguished road
Question inserting an image at current position

I have a macro which inserts an image at the current position but since a short while it inserts at the top of the page!

Can anyone help?

myperson = "john_doe"
myfile = "g:\office\files\" + myperson + ".bmp"
ActiveDocument.Shapes.AddPicture(Anchor:=Selection .Range, FileName:=myfile, _
LinkToFile:=False, SaveWithDocument:=True).WrapFormat.Type = wdWrapSquare
Reply With Quote