Hi,
because aoo cannot open all Word docs without crashing
(https://issues.apache.org/ooo/show_bug.cgi?id=125419), I wanted to let
do WinWord the job.
I need to know the names of all bookmarks.
So StarBasic looks like this:
wordInstance = CreateObject(Word.Application)
wordDoc =
Hi Peter!
If you using the right syntax (I don't know):
For i = 1 To wordDoc.Bookmarks.Count
^^^
bookmark = doc.Bookmarks(i)
^^^
msgbox bookmark.Name 'fails
'yes, it must
'Option Explicit enabled?
Regards, Mathias
Hi Mathias,
it's only a typo, meant wordDoc.Bookmarks(i)
the error property or method not found occurs in line
msgbox bookmark.Name
Regards
Peter
meant
Am 28.08.2014 18:03, schrieb Mathias Röllig:
Hi Peter!
If you using the right syntax (I don't know):
For i = 1 To