Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 1.19 KB

how-to-insert-a-new-worksheet-into-a-spreadsheet.md

File metadata and controls

44 lines (30 loc) · 1.19 KB
api_name api_type ms.assetid title ms.suite ms.author author ms.topic ms.date ms.localizationpriority
Microsoft.Office.DocumentFormat.OpenXML.Packaging
schema
944036fa-9251-408f-86cb-2351a5f8cd48
How to: Insert a new worksheet into a spreadsheet document
office
o365devx
o365devx
conceptual
12/12/2023
high

Insert a new worksheet into a spreadsheet document

This topic shows how to use the classes in the Open XML SDK for Office to insert a new worksheet into a spreadsheet document programmatically.


[!includeStructure]


Sample Code

Following is the complete sample code in both C# and Visual Basic.

[!code-csharp]

[!code-vb]


See also

Open XML SDK class library reference