Jump to content

Microsoft word - Verify items were entered in document.


Bert
 Share

Recommended Posts

I have a word doc that has a bunch of text form fields as well as a few check boxes. I need to run a script that can tell me if the Text form fields have text in them or are blank. I also need to review the check boxes to see if they have been checked. I've been reviewing the help file, but I don't see how to do it. Does anyone have an example of how to get the collection of objects in a word doc and show the collection in an array? I made a example word doc to show what I'm trying to capture.

_WordDocGetCollection - doesn't show me how to get what I need. It shows how to get the number of documents, not the objects in the doc.

Link to comment
Share on other sites

Volly:

No solution, but a few pointers....

Activedocument.Unprotect ; Before you can access the fields

J = Activedocument.Fields.Count ; Will give you # of Form Fields

You can use a FOR Loop to span fields, and

Something like "Activedocument.Fields(I).Result" should give you the value of a field.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...