Home All Groups Group Topic Archive Search About

using word.application in VB

Author
30 Jan 2006 11:49 PM
oldtimer
I am trying to extract the characters from a word document within a VB6 app
by declaring a WORD.APPLICATION object, Adding a WORD.DOCUMENT object and
then trying to access the character array.   It appears what I thought was a
character  array is not. 
I can find no documentation on the WORD.APPLICATION object and am flying
blind guessing at the use of methids and properties. So far I have got a
document to load into the new application.

Can someone point me at the documentation i need or tell me how to extract
the characters.

Author
31 Jan 2006 12:48 AM
Norman Yuan
Start MS Word, click menu "Tools->Macro->Visual Basic Editor", Then press
F2. You get entire Word object model information displayed in "Object
Brower" window. Highlight any object in Word or a member of an object, click
the "?" button, you get detailed document and code examples.


Show quoteHide quote
"oldtimer" <oldti***@discussions.microsoft.com> wrote in message
news:7C6CC902-2C65-4827-9E39-1EF8BAFD9D72@microsoft.com...
>I am trying to extract the characters from a word document within a VB6 app
> by declaring a WORD.APPLICATION object, Adding a WORD.DOCUMENT object and
> then trying to access the character array.   It appears what I thought was
> a
> character  array is not.
> I can find no documentation on the WORD.APPLICATION object and am flying
> blind guessing at the use of methids and properties. So far I have got a
> document to load into the new application.
>
> Can someone point me at the documentation i need or tell me how to extract
> the characters.
Author
31 Jan 2006 3:18 PM
oldtimer
Show quote Hide quote
"Norman Yuan" wrote:

> Start MS Word, click menu "Tools->Macro->Visual Basic Editor", Then press
> F2. You get entire Word object model information displayed in "Object
> Brower" window. Highlight any object in Word or a member of an object, click
> the "?" button, you get detailed document and code examples.
>
>
> "oldtimer" <oldti***@discussions.microsoft.com> wrote in message
> news:7C6CC902-2C65-4827-9E39-1EF8BAFD9D72@microsoft.com...
> >I am trying to extract the characters from a word document within a VB6 app
> > by declaring a WORD.APPLICATION object, Adding a WORD.DOCUMENT object and
> > then trying to access the character array.   It appears what I thought was
> > a
> > character  array is not.
> > I can find no documentation on the WORD.APPLICATION object and am flying
> > blind guessing at the use of methids and properties. So far I have got a
> > document to load into the new application.
> >
> > Can someone point me at the documentation i need or tell me how to extract
> > the characters.
>
>
>
Thank you very much.  
The pointers on getting documentation was exactly what I needed!
Author
31 Jan 2006 1:00 AM
Veign
Another create tool for getting some direction with Word VBA code is to use
the Record Macro feature and use the generated code as a base...

If you want some very basic connection code to Word you can use:
http://www.veign.com/vrc_codeview.asp?type=app&id=62

--
Chris Hanscom - Microsoft MVP (VB)
Veign's Resource Center
http://www.veign.com/vrc_main.asp
Veign's Blog
http://www.veign.com/blog
--


Show quoteHide quote
"oldtimer" <oldti***@discussions.microsoft.com> wrote in message
news:7C6CC902-2C65-4827-9E39-1EF8BAFD9D72@microsoft.com...
>I am trying to extract the characters from a word document within a VB6 app
> by declaring a WORD.APPLICATION object, Adding a WORD.DOCUMENT object and
> then trying to access the character array.   It appears what I thought was
> a
> character  array is not.
> I can find no documentation on the WORD.APPLICATION object and am flying
> blind guessing at the use of methids and properties. So far I have got a
> document to load into the new application.
>
> Can someone point me at the documentation i need or tell me how to extract
> the characters.
Author
31 Jan 2006 1:02 AM
MikeD
"oldtimer" <oldti***@discussions.microsoft.com> wrote in message
news:7C6CC902-2C65-4827-9E39-1EF8BAFD9D72@microsoft.com...
>I am trying to extract the characters from a word document within a VB6 app
> by declaring a WORD.APPLICATION object, Adding a WORD.DOCUMENT object and
> then trying to access the character array.   It appears what I thought was
> a
> character  array is not.
> I can find no documentation on the WORD.APPLICATION object and am flying
> blind guessing at the use of methids and properties. So far I have got a
> document to load into the new application.
>
> Can someone point me at the documentation i need or tell me how to extract
> the characters.

Character array?  As far as I know, no such thing exists in Word...at least
not in that kind of sense.

What is it, exactly, that you're ultimately needing to do? IOW, explain
better what you mean by "extract the characters".

As far as documentation, consult the VBA documentation included with Word.
It describes the Word object model, its objects, and their properties,
methods, and events.

--
Mike
Microsoft MVP Visual Basic