Hello, All you need is the MRI extension.
Within seconds it can point you to method
The .setSelection(aSelection) method takes a struct specifying the start position and the end position of your text selection.
MRI also generates snippets like this while using it:
Sub Snippet(Optional oInitialTarget As Object) Dim oSource As Object Dim aSelection As New com.sun.star.awt.Selection oSource = oInitialTarget.Source aSelection = oSource.getSelection() End Sub
[Tutorial] Introduction into object inspection with MRI
Hope this helps, A.S. -- For unsubscribe instructions e-mail to: email@example.com 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