Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word GoTo Parameters
Message
From
08/01/2001 13:19:36
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00460598
Message ID:
00460693
Views:
7
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform