Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word97 Parameters
Message
 
À
11/03/1998 11:12:16
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00083890
Message ID:
00083917
Vues:
33
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform