Information générale
Catégorie:
COM/DCOM et OLE Automation
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement