https://bugs.documentfoundation.org/show_bug.cgi?id=128065
Julien Nabet <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected], | |[email protected] --- Comment #7 from Julien Nabet <[email protected]> --- I gave a new try with master sources updated today and could reproduce this. After having added some debug traces, I found that the pb was in last line of this block: Function setupKOSheet(startingSheetName AS String, startingCell as String, Optional numParticipants As Integer, _ Optional vertSpacing As Integer, Optional horSpacing As Integer, Optional nameWidth As Integer, Optional redColor, Optional blueColor) Dim Document As Object Document = ThisComponent 'Get Sheet object If Not IsMissing(startingSheetName) And Document.Sheets.hasByName(startingSheetName) Then If startingSheetName = Document.CurrentController.ActiveSheet.Name Then Indeed "Document" seems not exist at this moment. (it would confirm the initial description) Now if I go to the first sheet "Befehle" in A6 and do a recalculate, it works. (this sheet contains =SETUPKOSHEET("Beispiel";"C2";16)) I wanted to know how the macro was launched at the start, so searched in Tools/Customize/Events and found nothing. It's after a while I saw it was in a formula. Mike/Andreas: thought you might be interested in this one. -- You are receiving this mail because: You are the assignee for the bug.
