Re: Filling Word with OLE2
Date: Wed, 21 Jun 2006 10:49:54 +0200
Message-ID: <e7b1c3$elo$1_at_ss408.t-com.hr>
<bruin.arjan_at_gmail.com> wrote in message
news:1150817275.304538.228280_at_y41g2000cwy.googlegroups.com
> Is there anyone who can tell me how to go to the next bookmark within
> a word document?
>
> I tried many things like:
> OLE2.INVOKE(workbook,'NextBookmark');
>
> or
>
> OLE2.INVOKE(workbook,'GoToNextBookmark');
>
> or
>
> OLE2.INVOKE(workbook,'Edit.NextBookmark');
>
> and so on. Is there any method to do so with OLE2?
> In Visual Basic NextBookmark() is an existing method, so I thought it
> should work.
>
> Any thoughts?
I don't see NextBookmark method nowhere in MS Word object model. But what I found is GoToNext method of Selection object. Use argument list in OLE2.INVOKE, you must send numeric value of wdGoToBookmark constant, which is -1. It should be piece of cake. Received on Wed Jun 21 2006 - 10:49:54 CEST
