VB.NET - Read an Excel Built-In Property



Reads a built-in property from an Excel workbook.

'Assembly: Microsoft.Office.Interop.Excel.dll
'Assembly: Office.dll
'Namespace: Excel = Microsoft.Office.Interop.Excel
'Namespace: Office = Microsoft.Office.Core

'Dim propertyValue AS Microsoft.Office.Core.DocumentProperty = "propertyValue"
'Dim workbook AS Microsoft.Office.Interop.Excel.Workbook = "workbook"

Dim docProperties As Office.DocumentProperties = DirectCast(workbook.BuiltinDocumentProperties, Office.DocumentProperties)
Dim propertyValue As Office.DocumentProperty = DirectCast(docProperties.Item(propertyName), Office.DocumentProperty)
			

Share |

 Cant find the page you are looking for?
 Help us to improve by adding the content that you are looking for.
 Leave a feedback
 We look forward to hear your comments and feedback.