Open a word document

  • Thread starter Thread starter Nick
  • Start date Start date
N

Nick

I have written code that creates a word document, I now
want to open up that document while still in access using
VB, is there a way of doign this?

Cheers

Nick
 
If we assume that you know the name and location of the doc you created, try
this:

strPath = "C:\Whatever\DocName.doc"
Set objWD = CreateObject("Word.Application")
objWD.Visible = True
Set objDoc = objWD.Documents.Open(strPath)
 
Back
Top