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