Articles in this section
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:

Custom_Properties.zip

 

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied