I
Ian B
I need to obtain a custom property value from an active word document using
VB6. Test code shown below:
In VBA:
Dim myProp As DocumentProperty
For Each myProp In ActiveDocument.CustomDocumentProperties
MsgBox myProp.Name
Next
In VB6
Errors on indicated line
Set oWord = GetObject(, "Word.Application")
Dim myProp As oWord.DocumentProperty <<<<<<<<<<<<<<<<<
For Each myProp In oWord.ActiveDocument.CustomDocumentProperties
MsgBox myProp.Name
Next
What have I forgotten?
TIA
Ian B
VB6. Test code shown below:
In VBA:
Dim myProp As DocumentProperty
For Each myProp In ActiveDocument.CustomDocumentProperties
MsgBox myProp.Name
Next
In VB6
Errors on indicated line
Set oWord = GetObject(, "Word.Application")
Dim myProp As oWord.DocumentProperty <<<<<<<<<<<<<<<<<
For Each myProp In oWord.ActiveDocument.CustomDocumentProperties
MsgBox myProp.Name
Next
What have I forgotten?
TIA
Ian B