This content has been marked as final. Show 2 replies
I'm trying to detect if a field is defined in a document in a VBScript macro but I don't see any obvious predicate or test to do so.
For example, if I retrieve a field like this:
set kaboom = ActiveDocument.Fields("DOESNOTEXIST")
Then kaboom is not null, is not empty and is an object.
So would do I test if ActiveDocument.Fields returns a real field in the document?