|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
using word.application in VBI 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. 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.
Show quote
Hide quote
"Norman Yuan" wrote: Thank you very much. > 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. > > > The pointers on getting documentation was exactly what I needed! 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 -- Show quoteHide quoteChris Hanscom - Microsoft MVP (VB) Veign's Resource Center http://www.veign.com/vrc_main.asp Veign's Blog http://www.veign.com/blog -- "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. "oldtimer" <oldti***@discussions.microsoft.com> wrote in message Character array? As far as I know, no such thing exists in Word...at least 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. 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
How to best resize a form?
Using Control Array in User Control Proper way to resize a Form Why Randomize() won't work? [function LOF] Fails after WordPad saving How to create an array of images Eliminate duplication in an array Problems with vbCtrlMask can't use a function from dll built in delphi VB.NET Shutdown from text file |
|||||||||||||||||||||||