Ask Your Question

Revision history [back]

Try this - assuming you have a bookmark named "Bookmark 1" from Insert Menu -> Bookmark

Sub writer_bookmark()

ViewCursor = ThisComponent.CurrentController.getviewCursor()
Bookmark = ThisComponent.Bookmarks.getByName("Bookmark 1").Anchor
ViewCursor.gotorange(Bookmark, False)

End Sub