Open a Worddoc

C

Chris

I want to have a button in a form. this button shall open a word document. is this possible, or do I have to paste the document into a form? (im pretty new at this, but i need some help
thank you for all kind of answers
 
A

Alex

In your Button_Click event do something similar:
dim wdapp, doc
set wdapp=createobject("word.application")
set doc=wdapp.documents.open("\\path\to\your\file.doc")
wdapp.visible=true

Chris said:
I want to have a button in a form. this button shall open a word document.
is this possible, or do I have to paste the document into a form? (im pretty
new at this, but i need some help)
 

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