Description: 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 Actual Results: Nothing Expected Results: Load one document at least Reproducible: Always User Profile Reset: No Additional Info: 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. Try using > 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.