Word Object Library 
Author Message
 Word Object Library

To use Word from within VB do the following: -

1. Reference the Word Object Library

2. Create A word object
    Dim MyWordObject as New Word.Application

3. Create a document
    Dim MyDoc As Document
    Set MyDoc = MyWord.Documents.Add

4. Make the Word Object visible

    MyWordObject.Visible = True

You can now manipulate the word or document objects by calling their methods
and setting their properties.

I can't really tell you what the possibilities are because there are so
many. You'll have to just play around with them a bit.

Hope this helps,

Jonathan Holland


Quote:
> Can anyone point me to a text, code examples etc which illustrate the use
of
> the Word Object Library in VB?  My proposed app will draw from an Access
> database to Word Merged documents (selected from a number of templates by
> Access) with user input at Word level and then update the database for
> changes.  I know this can be done directly from Word, but want to avoid
the
> users having to do this.

> Thanks for suggestions

> Ian Mitchell




Tue, 23 Jul 2002 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Word Object Library

2. Install a program... Word object library

3. Issue - Microsoft.Word object library does not have a strong name

4. Microsoft Word Object Library

5. Cannot load Word Object library(Office97) in VB4.0

6. Word Object Library

7. Loading the word object library into excel

8. microsoft word 8.0 object library

9. Microsoft Word 8.0 Object Library

10. Object Library für Word Perfect 8.0 in vba

11. Can't add a reference to Word 9.0 Object Library

12. Word 7 object library

 

 
Powered by phpBB® Forum Software