I have this knowqn-good macro:
Sub InitNewBudget
sheet = ThisComponent.CurrentController.ActiveSheet
'Clear "previous actuals."
target = sheet.getCellRangeByName("C5:C7")
target.clearContents(7)
target = sheet.getCellRangeByName("C11:C29")
target.clearContents(7)
End sub
It runs fine from the Macro Editor and in the Macro Organizer, but if I use Tools → Macros → Run Macro, and select InitNewBudget (the only one in the list), then click Run, the macro does not execute.
Oddly, if I save the sheet at an Exel .xlst file, then load that into Calc, the macro runs fine from Tools → Macros → Run Macro.
Can someone help me figure out what’s going on? Thanks.