-
How to open word.doc from VB5
What is the syntax to open a word document in word97, calling it from VB5?
I can open a txt file by "open file.txt for input as #1" But I want to open
word then the entire document to be displayed, with user being able to make
changes, save and print.
-
Re: How to open word.doc from VB5
Will,
The vb.vba group is somewhat more reliable for VBA questions.
The basic answer is to dim a variable as word application, set the variable
to a word application using CreateObject, manipulate Word as desired (such
as objApp.Documents.Open("filename") and close word. If word is already
open, you will want to use GetObject. Why don't you give it a shot with that
information, or search the vb.vba group where I know this question has been
answered with tested code.
--
Kathleen
(MS-MVP)
Reply in the newsgroup so everyone can benefit
--
"Will" <blyma@opic.gov> wrote in message news:39d3a48d$1@news.devx.com...
>
> What is the syntax to open a word document in word97, calling it from VB5?
> I can open a txt file by "open file.txt for input as #1" But I want to
open
> word then the entire document to be displayed, with user being able to
make
> changes, save and print.
-
Re: How to open word.doc from VB5
See the Assistant sample at www.wizard-software.co.uk
shows how to create a VB Word Object
--
James Jenkins - Free Thinking
www.wizard-software.co.uk
"Will" <blyma@opic.gov> wrote in message news:39d3a48d$1@news.devx.com...
>
> What is the syntax to open a word document in word97, calling it from VB5?
> I can open a txt file by "open file.txt for input as #1" But I want to
open
> word then the entire document to be displayed, with user being able to
make
> changes, save and print.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|