![]() |
|
|
|
#1
|
|||
|
|||
|
Is there a method of updating word 2011 (Mac) custom document properties without using the word application directly. I use an iMAc on High Sierra.
I have 20 custom properties which will change for every document. I can change the values manually for each document version using FILE>PROPERTIES>CUSTOM>select the custom variable>alter the value>MODIFY. But I want to automate this process when I need to do more that one document. I want to list all the property values in a spreadsheet for each instance and then press a VBA button to print a new document version with the new values. In the word document I use DOCPROPERTY to print the value of the custom property, e.g. {DOCPROPERTY "GeminiInvNum"}. (with the correct word generated curly brackets. e.g. Is it possible to make an API call from Excel to update the custom properties. The 20 different custom properties are a mixture of text, boolean, number and dates. Thanks |
|
#2
|
|||
|
|||
|
This thread needs to be moved to the VBA forum.
Quote:
The code to do this is largely the same as it would be if you did it from Word. Just realised you're using macOS. Find a Windows machine to use if you need to run this from Excel. The ability to automate another Office application using VBA is fundamentally broken on macOS. Last edited by Italophile; 08-27-2024 at 08:08 AM. |
|
#3
|
|||
|
|||
|
Thanks. I can use Parallels to run the job in a Windows instance but unsure of the commands I need to use in VBA to update the custom document properties.
|
|
#4
|
|||
|
|||
|
Moved to vba forum. |
|
#5
|
|||
|
|||
|
You can start from Document.CustomDocumentProperties property (Word) | Microsoft Learn
|
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help with Excel macro to extract all custom properties of Word Document to later mass update | anmalogo | Excel Programming | 2 | 04-29-2024 12:36 AM |
sort custom document properties
|
LQuinn | Word VBA | 4 | 03-17-2021 05:19 PM |
Adding Custom Document Properties
|
NicoleJones | Word VBA | 3 | 03-10-2021 08:43 PM |
Create Custom Document Properties with Content Control
|
kschmidt | Word VBA | 7 | 02-04-2019 03:09 PM |
Updating Document Properties without using advanced properties dialogue
|
thedr9wningman | Word VBA | 3 | 01-20-2014 05:56 PM |