Category / Section
How can we add custom properties to the Excel document?
1 min read
You can add custom properties to the Excel document by using the following code snippets.
C#
//Add custom properties. sheet.CustomProperties.Add("New"); //Assign value to the custom properties sheet.CustomProperties["New"].Value="Hello";
VB
'Add custom properties. sheet.CustomProperties.Add("New") 'Assign value to the custom properties sheet.CustomProperties("New").Value = "Hello"
Here is the sample for your reference: