Go Back   Access World Forums > Apps and Windows > Word

 
Reply
 
Thread Tools Rate Thread Display Modes
Old 04-05-2018, 02:31 AM   #1
wsaccess
Newly Registered User
 
Join Date: Dec 2015
Posts: 38
Thanks: 14
Thanked 0 Times in 0 Posts
wsaccess is on a distinguished road
Insert file into a Word Document

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

wsaccess is offline   Reply With Quote
Old 04-05-2018, 09:44 AM   #2
Ranman256
Newly Registered User
 
Join Date: Apr 2015
Location: KY,USA
Posts: 3,286
Thanks: 0
Thanked 719 Times in 704 Posts
Ranman256 will become famous soon enough Ranman256 will become famous soon enough
Re: Insert file into a Word Document

ActiveDocument.Hyperlinks.Add Anchor:=Selection.Range, Address:="C:\Documents\myPDF.pdf" _
, SubAddress:="", ScreenTip:="", TextToDisplay:="mypdf.pdf"
Ranman256 is offline   Reply With Quote
The Following User Says Thank You to Ranman256 For This Useful Post:
wsaccess (04-06-2018)
Old 04-06-2018, 12:52 AM   #3
wsaccess
Newly Registered User
 
Join Date: Dec 2015
Posts: 38
Thanks: 14
Thanked 0 Times in 0 Posts
wsaccess is on a distinguished road
Re: Insert file into a Word Document

Thanks! It worked!

wsaccess is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Access VBA Code to insert Word Building Block in Word Document AngC Modules & VBA 2 10-31-2017 02:15 PM
Insert Document into word from acces Chintsapete Modules & VBA 10 04-26-2016 10:00 PM
Insert a word document in another word document cherosoullis Word 5 08-17-2011 12:24 AM
Import word text into access report or open word document & insert header shenty Modules & VBA 4 11-26-2009 02:05 AM
[SOLVED] Insert htlm or word document in my report roula Reports 0 02-14-2002 12:21 AM




All times are GMT -8. The time now is 01:53 PM.


Microsoft Access Help
General
Tables
Queries
Forms
Reports
Macros
Modules & VBA
Theory & Practice
Access FAQs
Code Repository
Sample Databases
Video Tutorials

Featured Forum post


Sponsored Links


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
(c) copyright 2017 Access World