Once you have created the macro in the $[officename] Basic IDE, it appears in the source text of the HTML document in the header.
Сценарии $[officename] Basic должны размещаться в заголовке документа HTML.