 | OO-Snippets: unselect cell rangeCommons| Keywords | selection, unselect, cursor, select, com.sun.star.sheet.SheetCellRanges |
|---|
| Language | OOBasic |
|---|
| Application | Calc |
|---|
| Authors | Oliver Brinzing (initial)
Laurent Godard Michael Hoennig Niklas Nebel Tom Schindl
|
|---|
| Supported Versions | |
|---|
| Supported OS | |
|---|
| Question |
How can I unselect a cell range selected by user?
|
|---|
| Answer | I'm using this to change the cursor position and unselecting the cell ... |
|---|
Sub MoveCursor
oDocument = StarDesktop.getCurrentComponent
oView = oDocument.getCurrentController
ocell=odocument.getcurrentselection
oRanges = oDocument.CreateInstance("com.sun.star.sheet.SheetCellRanges")
oView.Select(oRanges)
end sub
|
Changelog| Date | User | Modification |
|---|
| 2004-06-22 | tomsontom | Modified to match new snippet-DTD | | 0000-00-00 | oli | initial version |
|