Home > Archive > Visual Basic > January 2006 > using word.application in VB
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
using word.application in VB
|
|
| oldtimer 2006-01-30, 6:55 pm |
| 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.
| |
| Norman Yuan 2006-01-30, 6:55 pm |
| 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" <oldtimer@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.
| |
|
|
"oldtimer" <oldtimer@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
| |
|
| 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
--
"oldtimer" <oldtimer@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.
| |
| oldtimer 2006-01-31, 6:55 pm |
|
"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" <oldtimer@discussions.microsoft.com> wrote in message
> news:7C6CC902-2C65-4827-9E39-1EF8BAFD9D72@microsoft.com...
>
>
>
Thank you very much.
The pointers on getting documentation was exactly what I needed!
|
|
|
|
|