The macro in the attached document runs without error but does nothing.
Expected result: Load a new document with the merged document or multiple documents with single mail merge instances.
Steps to Reproduce:
1. Load attachment
2. Click push button
3. Read embedded Basic code
Load one document at least
User Profile Reset: No
No more info
Created attachment 181550 [details]
simple mail merge macro
The code does create a document, and it is returned from execute(). The result of the execute depends on the OutputType, and in a boolean indicating success, except for css.text.MailMergeType.SHELL, in which case it returns a XTextDocument.
> doc = mm.execute(Array())
and inspect the doc object.
I apologize for unclear description I gave in https://ask.libreoffice.org/t/c-s-s-text-mailmergetype-shell-4/80148/2.