![]() |
#1
|
|||
|
|||
![]()
I want to read CustomDocumentProperties, here is my code but i can't get the
"ActiveDocument.CustomDocumentProperties.Count " working : I tried with "ThisDocument.CustomDocumentProperties.Count" as well. In Excel, "ThisWorkbook.CustomDocumentProperties.Count" works. Code:
'Read CustomDocumentProperties in a WordDocument Dim cp As DocumentProperty 'Check if CustumDocumentProperties exist ... If ActiveDocument.CustomDocumentProperties.Count = 0 Then MsgBox "Generation path not found" Exit Sub For Each cp In ActiveDocument.CustomDocumentProperties MsgBox cp.Name & vbLf & cp.Value Next cp End If |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Cosmo | Word VBA | 2 | 08-11-2014 01:35 PM |