Insert Into Word (1 Viewer)

lewando_bria

BoRiS
Local time
Today, 04:08
Joined
Jun 18, 2002
Messages
29
Hi...I am new to Microsoft Access...I am currently trying to use a button on a form to insert text into an already existing Word Document...here is the code i am using so far to access the document...

Private Sub Command0_Click()
Dim objWord As Object
Set objWord = Nothing
Set objWord = GetObject("filename")
objWord.Activate
objWord.Application.Visible = True
End Sub

my ultimate goal is to be able to insert text into a specific area of the already existing word document if possible but i would like to start off here because like i said...i am pretty new to access...any help on this matter would be greatly appreciated!!!!
 

doulostheou

Registered User.
Local time
Today, 03:08
Joined
Feb 8, 2002
Messages
314
Since I'm not a hundred percent positive what you are trying to do, I'm not sure if this suggestion will be helpful to you. One possible solution is to make the Word Document a mailmerge document. You can insert fields in it directly from access. When you open it the text in the field you specify will appear wherever you tell it to in Word.
 

Users who are viewing this thread

Top Bottom