[Libreoffice-bugs] [Bug 105451] Implement VBA macro support in Impress

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Sep 3 12:56:58 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=105451

--- Comment #3 from Frederic Parrenin <frederic.parrenin at univ-grenoble-alpes.fr> ---
So, in an Impress file, I created the following macro :

Option VBASupport 1
Sub Main
ActiveWindow.Selection.SlideRange.Shapes.AddShape(msoShapeRectangle, 150, 192,
168, 126).Select
End Sub

in the hope it would draw a rectangle, but I get an error:

Erreur d'exécution BASIC '91'
Variable d'objet non définie

If VBA is supported in Impress, could you give me a basic example?
Thanks.

-- 
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/20200903/3092323f/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list