![how to get to document properties word how to get to document properties word](https://www.cedarville.edu/images/default-source/insights/insert-filename-into-word-header-footer.jpg)
![how to get to document properties word how to get to document properties word](https://www.excelatwork.co.nz/wp-content/uploads/2021/07/Document-properties-Word-26.jpg)
You’d think with all those options in the worksheet structure they’d be accompanied by a function like say DocProperty() which insert or even change the properties within the worksheet, for example =DocProperty(“Title”) could insert the document title.Īs you can see from the VBA code above, the document properties are available in VBA so making them available in a regular Excel function would not seem a big ask. There’s no direct way to use document properties in the worksheet! CustomDocumentProperties(Info_needed).Value Note that there’s no error checking, if you request a property that isn’t set or existing, an error is returned.įor custom properties you need a slightly different function such as: Private Function DocPropCustom(Info_needed As String) As VariantĭocPropCustom = ThisWorkbook.
How to get to document properties word full#
The full list of available properties is here – where you’ll also find details of the VBA property used.
![how to get to document properties word how to get to document properties word](https://www.addintools.com/documents/office/images/where-file-properties/word-file-properties-file-menu-2-526-434.png)
Use any of the regular document property names, including Use this formula to add a property to the worksheet: =docprop("Author") Private Function DocProp(Info_needed As String) As VariantĭocProp = ThisWorkbook.BuiltinDocumentProperties(Info_needed).Value We found this one here from ‘Jon-jon’, thanks. In Excel, the only way to add document properties into a worksheet is via a custom function. Go to File | Info in Excel 2013 (Prepare | Properties in Excel 2007) and all the properties are there including a document panel, advanced and custom properties, same as in Word. You can add and edit document properties in worksheets much the same as in Word documents. We also complained about the poor support for properties in Excel. We’ve already told you about document properties and how useful they are in Word.