# Creating a odt doc with a date and time macro Collabora Online (Filr)

**URL:** <https://forum.collaboraonline.com/t/creating-a-odt-doc-with-a-date-and-time-macro-collabora-online-filr/1684>\
**Category:** Writer\
**Created:** [March 13, 2023, 9:30pm UTC](https://forum.collaboraonline.com/t/creating-a-odt-doc-with-a-date-and-time-macro-collabora-online-filr/1684 "2023-03-13T21:30:09Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Tex](https://avatars.discourse-cdn.com/v4/letter/t/eb8c5e/32.png) [@Tex](https://forum.collaboraonline.com/u/Tex)\
**Post date:** [January 18, 2024, 1:51am UTC](https://forum.collaboraonline.com/t/creating-a-odt-doc-with-a-date-and-time-macro-collabora-online-filr/1684/2 "2024-01-18T01:51:17Z")

</div>

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

1. Go into your `coolwsd.xml` file.
2. There is a line for the `enable_macros_execution` setting:

```auto
<enable_macros_execution desc="Specifies whether the macro execution is enabled in general. This will enable Basic and Python scripts to execute both installed and from documents. If it is set to false, the macro_security_level is ignored. If it is set to true, the mentioned entry specified the level of macro security." type="bool" default="false">false</enable_macros_execution>

```

Change that from `false` → `true`.

1. Now, when you open a document, there should be a new “Run Macro” option available.

2. That should open up the “Macro Selector” menu:

 ![Collabora.23.05.7.2.-.File.-.Run.Macro.-.Macro.Selector](https://europe1.discourse-cdn.com/flex013/uploads/collaboraonline/original/2X/a/a630e59297c213a814dbc98700881ffedde6e22a.png)

From there, you can choose your macros.

* * *

For more info, you may also want to check out:

- [Collabora Online 23.05 SDK: “Using Python scripting in Collabora Online”](https://sdk.collaboraonline.com/docs/Using_Python_scripting_in_Collabora_Online.html)

---

_[View the full topic](https://forum.collaboraonline.com/t/creating-a-odt-doc-with-a-date-and-time-macro-collabora-online-filr/1684)._
