{"title":"ExcelLayoutMultipleDataSheets Property","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/properties/devenv-excellayoutmultipledatasheets-property/","by":"JOP-AL","license":"Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/properties/devenv-excellayoutmultipledatasheets-property, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/properties/devenv-excellayoutmultipledatasheets-property","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Sets whether an Excel layout will render to multiple data sheets or in a single sheet named Data.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":2,"title":"Applies to","slug":"applies-to","at":390,"chars":37},{"level":2,"title":"Remarks","slug":"remarks","at":427,"chars":716},{"level":2,"title":"Example","slug":"example","at":1143,"chars":985},{"level":2,"title":"Related information","slug":"related-information","at":2128,"chars":115}],"text":"> Version: _Available or changed with runtime version 12.0._\nSets whether an Excel layout will render to multiple data sheets or in a single sheet named Data.\nMultiple sheets will be named Data_DataItemName, where DataItemName is the dataitem name used in the report design.\nThere will be one sheet per root dataitem in the report object. The default is to use a single sheet for all data.\n## Applies to\n Report\n Report Layout\n## Remarks\nStarting in 2025 release wave 1 (runtime 15), the ExcelLayoutMultipleDataSheets property is available on individual report layouts. It lets you override the global property defined on the report object. If the ExcelLayoutMultipleDataSheets property isn't used or is set to false on the report object, you can add Excel layouts that use the ExcelLayoutMultipleDataSheets feature without breaking existing layouts that users added. This cabability is useful for adding new Excel layouts to a report using the structure that ExcelLayoutMultipleDataSheets provides. See Creating an Excel layout report<../devenv-howto-excel-report-layout#excel-layout-data-contract-in-2023-release-wave-2-and-later-versions>.\n## Example\nThis code demonstrates how to use the ExcelLayoutMultipleDataSheets property. Although the ExcelLayoutMultipleDataSheets property is false on the report object, the rendered report in Excel includes worksheets for DataItem1 and DataItem2 because the ExcelLayoutMultipleDataSheets property is true in the layout definition.\n```al\nreport 50100 MyReport\n{\n    UsageCategory = ReportsAndAnalysis;\n    ApplicationArea = All;\n    DefaultRenderingLayout = MyLayout;\n    ExcelLayoutMultipleDataSheets = false;\n\n    dataset\n    {\n        dataitem(DataItem1; Table1)\n        {\n            column(Column1; Column1)\n            {\n\n            }\n        }\n        dataitem(DataItem2; Table2)\n        {\n            column(Column2; Column2)\n            {\n\n            }\n        }\n    }\n\n    rendering\n    {\n        layout(MyLayout1)\n        {\n            Type = Excel;\n            LayoutFile = 'mySpreadsheet.xlsx';\n            ExcelLayoutMultipleDataSheets = true;\n        }\n    }\n\n}\n```\n## Related information\nGetting Started with AL<../devenv-get-started>\nDeveloping Extensions<../devenv-dev-overview>"}