My first post here so I hope this goes OK!
I am using VBA in Excel 2003 (Windows XP) to cycle through a set of Word files which are questionnaire returns using form fields. It all works fine, but I hoped to get a way to read all the elements of the FormFields() array in each Word document in one pass per document, to reduce the time taken (there are 118 form fields per document).
Currently I am using a loop for each Word file to read each result one at a time into my VBA array:
Expand|Select|Wrap|Line Numbers
- For Qnum = 1 To HowMany
- Answers(Qnum - 1) = .FormFields(Qnum).Result
- Next Qnum
Expand|Select|Wrap|Line Numbers
- Range("A2").Resize(1, HowMany).Value = Answers()
Expand|Select|Wrap|Line Numbers
- Answers() = .FormFields().Result
Compile error: Method or data member not found
I've searched all the places I know and found nothing that helps.
Many thanks in advance,
Nic