Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word GoTo Parameters
Message
De
08/01/2001 13:19:36
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00460598
Message ID:
00460693
Vues:
6
>I am getting an error on the following line of code. Are there other parameters I have to include? These were the only one given by the Word macro recorder. TIA!
>
>oWord.Selection.GoTo(wdGoToBookmark, "Section_I_Table")

I see that you've gotten lots of ideas on how to make the GoTo work, but you don't need GoTo with bookmarks. As someone showed you in the other thread, you can just use the Bookmarks collection to address a bookmark directly.

oRange = oDocument.Bookmarks("MyBookmark").Range()

Now you have the bookmark in the oRange variable.

Tamar
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform