Bert Posted October 8, 2008 Share Posted October 8, 2008 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. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
DaRam Posted October 8, 2008 Share Posted October 8, 2008 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 More sharing options...
Bert Posted October 8, 2008 Author Share Posted October 8, 2008 You don't know where in the MSDN I can find more out on this? I've searched and it is a rats nest of information. I could spend hours trying to find the tibit I need. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
DaRam Posted October 9, 2008 Share Posted October 9, 2008 Tryhttp://msdn.microsoft.com/en-us/library/aa...office.11).aspxAndhttp://msdn.microsoft.com/en-us/library/bb244875.aspxYou don't know where in the MSDN I can find more out on this? I've searched and it is a rats nest of information. I could spend hours trying to find the tibit I need. Link to comment Share on other sites More sharing options...
Bert Posted October 9, 2008 Author Share Posted October 9, 2008 looks good. I will look at this at work later today. Thanks! The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now