![]() In a Word document, the document information such as file name, file path maybe inserted as fields as below screenshot shown. Fixing this problem would not be something that Microsoft could show off at demonstrations and isn’t cloud related so it’s a lower development priority.How to update/refresh one field or all fields in Word document? But the same care wasn’t taken to making use of those properties. why are all the document properties in Excel to begin with? Our spies tell us that there was a Microsoft management edict to have the same interface for document properties in Word, Excel and PowerPoint so that was done by each development team. The custom functions above are just ‘wrappers’ that make the existing VBA feature available to the worksheet. 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. The full list of available properties is here – where you’ll also find details of the VBA property used. 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. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |