Using VBA, how to open a MS WORD file in local maching ?

Y

yancey

Dim MSWordApp As Variant
Set MSWordApp = CreateObject("Word.Application")
MSWordApp.OpenFile("c:\myword.doc")
MSWordApp.Visible = True

The 3rd line may be wrong, but i forgot how code that line.
 

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