- Code: Select all Expand viewCollapse view
CellRange = Sheet1.getCellRangeByName("F15:F26") 'The Tick Boxes
Flags = 23
CellRange.clearContents(Flags)
works correctly. (In the actual code, Flags is defined using the preset com.sun.star values.) But when I define a named cell range
- Code: Select all Expand viewCollapse view
CellRange = ThisComponent.NamedRanges.getByName("TickBoxes")
Flags = 23
CellRange.clearContents(Flags)
returns an error 'method not found: clearContents'. The cell range appears to be understood by Navigator.
What am I doing wrong here?