[Xlsx.Embed:]UPDATED
Embeds the XLSX output file into the output Word or PowerPoint document.
Macro Compatibility
The macro can be used in the highlighted input document types only. A greyed-out icon indicates not supported.
Usage
This macro runs when the report has been processed. ONLY when XLSX is checked on the Schedule, will the output XLSX file be embedded in the Word or PowerPoint document. NOTE: this macro only works for Word and PowerPoint input documents. In PowerPoint, insert the macro into the Notes or any shape, but note that the shape ID parameter is still mandatory and should be set in the Alt Text of the shape.
What's New
(2025-06-17)Can now be used in PowerPoint input document templates.
Parameter | Type | Presence | Purpose | Options | Default |
---|---|---|---|---|---|
String | Mandatory | The text (filename) shown on the embedded icon. | N/A | N/A | |
List<String> | Optional | The worksheets to include in the embedded XLSX file. When not set, all worksheets will be included. | N/A | N/A | |
String | Optional | In PowerPoint input documents only, the ID of the shape. It will be deleted and the Excel document will be inserted in its place, represented as a clickable icon with its upper left corner at the same location as the original shape's upper left corner. The icon size is fixed at 2.54 cm (width) x 2.14 cm (height) - identical to the size if you use PowerPoint to insert an Excel document. | N/A | N/A |
Examples (3)
Example 1:
This Word example embeds the entire XLSX file (all the worksheets) into the output document:
[Xlsx.Embed: iconText=My Excel File.xslx]
Example 2:
This Word example includes only the specified worksheets in the embedded XLSX file, and sets the output text on the icon:
[Xlsx.Embed: iconText=My Excel File.xslx, includedWorksheets=Worksheet 1;Worksheet 2]
Example 3:
This PowerPoint example embeds the entire XLSX file (all the worksheets) into the output document. Note the 'shapeId' parameter is used:
[Xlsx.Embed: iconText=My Excel File.xslx, shapeId=My Shape]