Open a word document

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
 
M

MDW

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top