Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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?
Thanks,
Andrew Warinner
Maybe you can use the system field $Field.
Yes, that looks like it will do the trick.
Thanks!
AW