Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word97 Parameters
Message
De
11/03/1998 11:10:14
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:
00083900
Vues:
35
>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
endwith
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform