Re: Filling Word with OLE2



<bruin.arjan@xxxxxxxxx> wrote in message
news:1150817275.304538.228280@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
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.

.



Relevant Pages

  • Re: Filling Word with OLE2
    ... Is there anyone who can tell me how to go to the next bookmark within a ... Is there any method to do so with OLE2? ... In Visual Basic NextBookmark() is an existing method, ...
    (comp.databases.oracle.tools)
  • Re: Filling Word with OLE2
    ... Is there any method to do so with OLE2? ... In Visual Basic NextBookmark() is an existing method, ... Have you tried a MS Word forum? ...
    (comp.databases.oracle.tools)
  • Minimilistic XML file for Word
    ... Does anyone know what the least amount of XML information needed to make a Word document? ... Rather than create a Word document using the Word object model, I would like to create a text file that contains XML tags that Word can interpret as a Word document and fill in the missing information. ... Visio MVP ...
    (microsoft.public.word.vba.general)
  • Create New Word Doc
    ... Does anyone know how to create a new Word Document in VB.NET 2003 without ... adding a reference to the Word Object Model? ... I want to create it from scratch ...
    (microsoft.public.word.docmanagement)