I've not found a example wich show me how to deselect ALL the selected cells in the current sheet using a Macro.... Can someone help me?
Thanks a lot in advance!
Code: Select all
dummy = ThisComponent.createInstance("com.sun.star.sheet.SheetCellRanges")
view = ThisComponent.getCurrentController()
view.select(dummy)Code: Select all
document = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
dispatcher.executeDispatch(document, ".uno:Deselect", "", 0, array())