2 Replies Latest reply: Jun 29, 2012 7:37 AM by warinner RSS

    Detecting if a field is defined in VBScript?

      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?




      Andrew Warinner