# Where is it possible to manage macros in CODE?

**URL:** <https://forum.collaboraonline.com/t/where-is-it-possible-to-manage-macros-in-code/2997>\
**Category:** User Support\
**Created:** [September 21, 2024, 3:35pm UTC](https://forum.collaboraonline.com/t/where-is-it-possible-to-manage-macros-in-code/2997 "2024-09-21T15:35:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ivanhercaz](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/ivanhercaz/32/1353_2.png) [@ivanhercaz](https://forum.collaboraonline.com/u/ivanhercaz)\
**Post date:** [September 21, 2024, 3:35pm UTC](https://forum.collaboraonline.com/t/where-is-it-possible-to-manage-macros-in-code/2997/1 "2024-09-21T15:35:44Z")

</div>

Hi everyone!  
it is my first time here and practically a new-born using Collabora (CODE) in my Nextcloud instance. So if this post lacks something necessary, just point it and I will update the post!

I am interested in the use of macros in Collabora. Thanks to the below answer I was able to enable them and now I see the “Run macro” button correctly.

> [@Creating a odt doc with a date and time macro Collabora Online (Filr)](https://forum.collaboraonline.com/t/creating-a-odt-doc-with-a-date-and-time-macro-collabora-online-filr/1684/2):
>
> Hey @BetterThanThis. It looks like soon after you asked this, Macro functionality was introduced: [“CODE 6.4.7 enables Macros and provides Draw online” (Collabora Blog)](https://www.collaboraoffice.com/release-news/code-6-4-7-enables-macros-and-provides-draw-online/) As long as you are on a newer version of Collabora Online, this should be possible. (I just tested 23.05 and it worked.) How To Enable Macros in Collabora Online Go into your coolwsd.xml file. There is a line for the enable\_macros\_execution setting: \<enable\_macros\_execution desc="Specifies whether the macro execution is en…

However, my searches about how to mange the macros library and how to create one using CODE hasn’t been successful. After all my searches, I really don’t know if the macros must be created inside the container in which I run CODE or in some part of the Nextcloud interface (in case this depends of the Nextcloud extension, just tell me and I will request support there too!).

Could someone point me in the right direction?

My environment is the next one:

- Nextcloud 29.0.5
- Collabora Online Development Edition 24.04.7.1 61cf2b4

Thank you very much in advance!

Regards

**Update** : I just discover that I can create a macro with LibreOffice Basic, attach it to the document, upload it to Nextcloud, open it with CODE and see the macro attached to the document.

It is nice to have this possibility, although I am still interested in knowing if it is possible to manage completely the macros from CODE without needing to use LibreOffice to create them.

---

<div class="post-metadata">

**Author:** ![darshan](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/darshan/32/2230_2.png) [@darshan](https://forum.collaboraonline.com/u/darshan)\
**Post date:** [September 23, 2024, 5:17am UTC](https://forum.collaboraonline.com/t/where-is-it-possible-to-manage-macros-in-code/2997/2 "2024-09-23T05:17:28Z")

</div>

Hii @ivanhercaz Welcome to Collabora online forums.

> [@ivanhercaz](#):
>
> **Update** : I just discover that I can create a macro with LibreOffice Basic, attach it to the document, upload it to Nextcloud, open it with CODE and see the macro attached to the document.

Awesome 🎉 @ivanhercaz

> [@ivanhercaz](#):
>
> although I am still interested in knowing if it is possible to manage completely the macros from CODE without needing to use LibreOffice to create them.

Managing and creating macros entirely within Collabora CODE (without relying on LibreOffice desktop) is a challenge, as Collabora Online (including CODE) doesn’t yet fully support macro development through its interface. Currently, there are limitations in CODE for creating, editing, and managing macros natively within the online environment

> **[How to use and manage Basic and VBA compatible macros in Collabora Online](https://www.collaboraonline.com/blog/how-to-use-and-manage-macros-in-collabora-online/)**
>
> The release of Collabora Online 6.4.7  and CODE 6.4.7 introduced the possibility to run macros in Online! Configuration settings in loolwsd.xml: enabling and setting the security level By default, execution of macros is completely disabled. The...

Thanks,  
Darshan

---

<div class="post-metadata">

**Author:** ![ivanhercaz](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/ivanhercaz/32/1353_2.png) [@ivanhercaz](https://forum.collaboraonline.com/u/ivanhercaz)\
**Post date:** [September 23, 2024, 12:22pm UTC](https://forum.collaboraonline.com/t/where-is-it-possible-to-manage-macros-in-code/2997/3 "2024-09-23T12:22:35Z")

</div>

Thank you very much for your answer, @darshan!

> [@darshan](#):
>
> Managing and creating macros entirely within Collabora CODE (without relying on LibreOffice desktop) is a challenge, as Collabora Online (including CODE) doesn’t yet fully support macro development through its interface. Currently, there are limitations in CODE for creating, editing, and managing macros natively within the online environment

All right! And no problem. I will only need to use LibreOffice to write and test them. And it is easy to make because the file will be synchronized with Nextcloud, so no problem! At the end, once I developed a macro and ensure it works, I will only change it if I have other requirement to fill.

Again, thank you very much for your help!

Regards,  
Iván

---

<div class="post-metadata">

**Author:** ![darshan](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/darshan/32/2230_2.png) [@darshan](https://forum.collaboraonline.com/u/darshan)\
**Post date:** [September 23, 2024, 12:23pm UTC](https://forum.collaboraonline.com/t/where-is-it-possible-to-manage-macros-in-code/2997/4 "2024-09-23T12:23:42Z")

</div>


