ProfessorGrimes
Technical User
How can I insert an image into a *specific place* in a Word 2003 document *once* regardless of how many times the macro is run.
Key words there are "Specific Place" and "Once".
I've tried using:
ActiveDocument.Bookmarks("ThisBookmark").Range.InlineShapes.AddPicture FileName:="C:\ThisImage.jpg"
This will place the image every time I run the macro. I only want one image in the document... not one for every time I run the macro.
If I don't use a bookmark then the image does not end up in the correct place in the document.
I'd like the image to act kind of like a document variable in that each time I run the macro it retrieves the image file and places it in the location of the "docvariable".
Key words there are "Specific Place" and "Once".
I've tried using:
ActiveDocument.Bookmarks("ThisBookmark").Range.InlineShapes.AddPicture FileName:="C:\ThisImage.jpg"
This will place the image every time I run the macro. I only want one image in the document... not one for every time I run the macro.
If I don't use a bookmark then the image does not end up in the correct place in the document.
I'd like the image to act kind of like a document variable in that each time I run the macro it retrieves the image file and places it in the location of the "docvariable".