Dear list, I am trying to update the text contained in a bookmark using a basic macro. It works great when I make a selection in the ui and insert a bookmark. This way the content is always replaced just as I would like. Trouble is when I position the cursor and then insert a bookmark. Now when I use the macro the text is always inserted at the position of the bookmark and never replaced. I cannot seem to figure out how to fix this. This is the macro I use: Dim Doc As Object Dim Bookmark As Object Dim Cursor As Object Doc = ThisComponent Bookmark = Doc.Bookmarks.getByName("bm1") Cursor = Doc.Text.createTextCursorByRange(Bookmark.Anchor) Cursor.String = "-- bookmark1 --" Thanks a lot for you support! - Koos
-- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette List archive: http://listarchives.libreoffice.org/global/users/ All messages sent to this list will be publicly archived and cannot be deleted