[Libreoffice-bugs] [Bug 121197] Macro: run from Basic editor but error after running from document
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Tue Nov 6 12:14:50 UTC 2018
https://bugs.documentfoundation.org/show_bug.cgi?id=121197
Oliver Brinzing <oliver.brinzing at gmx.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|6.1.3.2 release |Inherited From OOo
Status|UNCONFIRMED |RESOLVED
Resolution|--- |NOTABUG
CC| |oliver.brinzing at gmx.de
--- Comment #1 from Oliver Brinzing <oliver.brinzing at gmx.de> ---
if you connect a form control with a basic method,
you will receive an ActionEvent as parameter.
to make it work, change your macro, e.g.:
Sub macroBAD(oEvt)
oModel = oEvt.Source.Model
oDoc = oModel.getParent.getParent.getParent
msgbox oModel.Name
msgbox oDoc.drawpage.getforms().getbyname("Form").getByName("buttonBAD").name
End Sub
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20181106/18530489/attachment.html>
More information about the Libreoffice-bugs
mailing list