selection unselect cursor select com.sun.star.sheet.SheetCellRanges Oliver Brinzing Laurent Godard Michael Hoennig Niklas Nebel Tom Schindl How can I unselect a cell range selected by user?

I'm using this to change the cursor position and unselecting the cell ...

Sub MoveCursor oDocument = StarDesktop.getCurrentComponent oView = oDocument.getCurrentController 'Move to a specified cell 'oCell = oView.getActiveSheet.getCellByPosition(5,10) 'Move at the beginning of the selection ocell=odocument.getcurrentselection oRanges = oDocument.CreateInstance("com.sun.star.sheet.SheetCellRanges") oView.Select(oRanges) end sub
Modified to match new snippet-DTD initial version