im rather new to VBA. MY problem is:
I create a Button when I Click another Button: the create Button is created as followed:
Set t = ActiveSheet.Range(Cells(i +6, 4), Cells(i+6, 5)) '+6 to start at cell 6
Set buttons = ActiveSheet.Buttons.Add(t.Left, t.Top , t.Width, t.Height)
With buttons
.OnAction = ""
.Caption = "Add TestCase to " & sReturn
.Name = "Btn" & i
End With
And I want to have an function in "OnAction". But I just doesn't Work, I receive a "Syntax Error". Basically I just want to have a function executed on a Click on a button which is created programatically. I also looked several forums for this problem and nothing worked, I think cause it is libreoffice.
Edit: the solutions work in Excel not in Libreoffice