Word VBA - filling an Array with content of an Outline

hindersaliva used Ask the Experts™
In Excel I can fill an Array with the contents of a Range, like this.
arrMyArray = Range("A1:M1000")  

Open in new window

It is quick. Instantaneous.

If I want to do similar in Word with VBA, where I want to fill an Array with the text that are in an outline with styles Heading 1, 2, and 3, I have been using Find (by style). That works, but takes up to 30 seconds on a document that has 1,000 approx headings.

Is there an equivalent in Word with VBA that works the same way as in Excel? ie. Instantaneously populating an Array with the contents of an Outline.

Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2016

AFAIK it not possible this way


Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial