Is it possible to insert a graphic into word through vb code? I've looked at the selection.insertfile("c:\........) routine but it's not working. If anyone has any ideas, I'd greatly appreciate them. Thanks!
Printable View
Is it possible to insert a graphic into word through vb code? I've looked at the selection.insertfile("c:\........) routine but it's not working. If anyone has any ideas, I'd greatly appreciate them. Thanks!
Try this instead:
VB Code:
.Selection.InlineShapes.AddPicture FileName:="yourpath.yourgraphicfilename.ext", _ LinkToFile:=False, SaveWithDocument:=True
Insert file is for just that, files... graphics are treated a bit differently.
Don't forget if there is ever anything you need to do in Word through VB, simply record a basic macro and "doctor it up" as necessary in VB!!
Good luck,
Mary