Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word97 Parameters
Message
 
To
11/03/1998 11:12:16
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00083890
Message ID:
00083917
Views:
29
>>I found out how to do the simple Word97 commands in the FAQ, but how do you handle the more complicated new commands like Selection.Goto?
>>
>>I would like to find a bookmark in a premade doc and replace it. It was not that difficult in old word basic. This is the statment I need it to receive:
>>
>>Selection.Goto What:=wdGotoBookmark, Name:='BM1'
>>
>>I can get as far as opening the doc, and setting ReplaceSelection to .t., but can't jump to the bookmark to issue the TypeText command.
>>
>>TIA
>>Bill
>
>oWord8 = createobject("word.application")
>with oWord.wordbasic
>    ....          && File opened and bookmarks placed
>    .editbookmark("mybookmark",,,,1)
>* editbookmark(cBookmarkname,lSort,lAdd,lDelete,lGoto)
>* omit the unneeded
>* pass 0 for .f. 1 for .t. as above
>    ....
>*This one directly uses Word8 selection object with a predefined bookmark
>    oWord.selection.goto("\t")
>endwith
>
>Cetin

Thanks, that really helped with syntax. I didn't realize that there were two ways to pass the parameters when I was doing it through the the VB editor help.
Bill Mittenzwey
Previous
Reply
Map
View

Click here to load this message in the networking platform