Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word GoTo Parameters
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00460598
Message ID:
00460609
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")
>
>The Word help file shows four parameters, all of which are optional, in the format: expression.GoTo(What, Which, Count, Name). It says that the "what" parameter may be one of a number of constants such as wdGoToBookmark, which you've defined, I assume. Do a search on your hard drive for vbawrd9.chm (for Office 2000).

I beleive your syntax is wrong:
Selection.GoTo(What:=wdGoToBookmark, Which:="Section_I_Table")
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform