#1
|
|||
|
|||
How to recover the advanced properties of a closed document?
Hello,
Do you know how, in vba, to get the advanced properties of a closed .docx document? CreateObject("Scripting.fileSystemObject") ou CreateObject("Shell.Application") allows you to get some standard properties, but not all the properties found (dor example the name of the Modele .dotm) in the Details tab of the Properties window for a file (i.e.: right click on the file, then Properties, then the Details tab) Greetings, David |
#2
|
|||
|
|||
Hi,
If I don't find a solution, I'll add a keyword during the creation of the document with: myDoc.BuiltInDocumentProperties("Keywords").Value = myKwd, so I can retrieve it even if the file is closed. It's a bit of a fiddle but it should do the trick. Have a nice day, David Last edited by Ddadoo57; 03-17-2023 at 06:25 AM. |
#3
|
|||
|
|||
Hi,
If I don't find a solution, I'll add a keyword during the creation of the document with: myDoc.BuiltInDocumentProperties("Keywords").Value = myKeyW, so I can retrieve it even if the file is closed. It's a bit of a fiddle but it should do the trick. Have a nice day, David |
#4
|
|||
|
|||
Hi,
If I don't find a solution, I'll add a keyword during the creation of the document with: myDoc.BuiltInDocumentProperties("Keywords").Value = myKeyW, so I can retrieve it even if the file is closed. It's a bit of a fiddle but it should do the trick. Have a nice day, David |
#5
|
|||
|
|||
Do some googling for DSOFile.dll, which lets you read properties from docs without opening them. See if it does what you need.
|
#6
|
|||
|
|||
Quote:
Thanks for your feedback, Stuart_C2! Do you know where I can find this dll in a secure way? Best, David |
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Editing Required Document Properties - Sharepoint Properties | jason1984 | Word | 2 | 06-05-2022 10:06 PM |
How can I recover a word document that was 'Saved-over' with another (old) version of same document? | Mrsolace | Word | 2 | 09-10-2021 10:50 AM |
Word crashes if the merged document file is closed first | reidtaylor | Mail Merge | 7 | 05-07-2019 04:19 AM |
Macro to display Advanced Properties? | XmisterIS | Word VBA | 0 | 04-24-2014 03:13 AM |
Updating Document Properties without using advanced properties dialogue | thedr9wningman | Word VBA | 3 | 01-20-2014 05:56 PM |