General information
Category:
COM/DCOM and 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
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only