I would like to update a Word field from a VBA macro.
The Word Doucument is wrdDoc in the code below.
When I run the code I get a Type mismatch error on retrieving the properties.
If anyone can help I'd be really grateful.
Dim objCustomProperties As CustomProperties
Set objCustomProperties = wrdDoc.CustomDocumentProperties
For i = 1 To objCustomProperties.count
objCustomProperty = objCustomProperties.Item(i)
Next