>>I found out how to do the simple Word97 commands in the FAQ, but how do you handle the more complicated new commands like Selection.Goto?
>>
>>I would like to find a bookmark in a premade doc and replace it. It was not that difficult in old word basic. This is the statment I need it to receive:
>>
>>Selection.Goto What:=wdGotoBookmark, Name:='BM1'
>>
>>I can get as far as opening the doc, and setting ReplaceSelection to .t., but can't jump to the bookmark to issue the TypeText command.
>>
>>TIA
>>Bill
>
>oWord8 = createobject("word.application")
>with oWord.wordbasic
> ....
> .editbookmark("mybookmark",,,,1)
>* editbookmark(cBookmarkname,lSort,lAdd,lDelete,lGoto)
>* omit the unneeded
>* pass 0 for .f. 1 for .t. as above
> ....
>*This one directly uses Word8 selection object with a predefined bookmark
> oWord.selection.goto("\t")
>endwith
>
>Cetin
Thanks, that really helped with syntax. I didn't realize that there were two ways to pass the parameters when I was doing it through the the VB editor help.
Bill Mittenzwey