Insert file into a Word Document (1 Viewer)

wsaccess

Registered User.
Local time
Today, 19:59
Joined
Dec 23, 2015
Messages
38
Hi,
I am trying to insert a PDF File (as attachment) into a Bookmark in the Word Document. How do I do it?

Following is the code I used, but it doesnt seem to work:

FileSystemObject.CopyFile sourcefile, appDoc.bookmarks("Bookmark1").Range

Thanks
 

Ranman256

Well-known member
Local time
Today, 15:59
Joined
Apr 9, 2015
Messages
4,339
ActiveDocument.Hyperlinks.Add Anchor:=Selection.Range, Address:="C:\Documents\myPDF.pdf" _
, SubAddress:="", ScreenTip:="", TextToDisplay:="mypdf.pdf"
 

wsaccess

Registered User.
Local time
Today, 19:59
Joined
Dec 23, 2015
Messages
38
Thanks! It worked!
 

Users who are viewing this thread

Top Bottom