Avatar of hindersaliva
Flag for United Kingdom of Great Britain and Northern Ireland

asked on 

Word VBA - looping and Paragraphs

I'm finding that looping through 5,000+ paragraphs in a document, to find approx 40 that have a Heading 1 style, is slow (takes minutes, and not milliseconds).

Is there a quick way of 'finding the next Heading 1 style'?

I heard that with the Paragraphs collection we don't need to loop through to work with the paragraphs. I don't know if that helps with my quest.

Thanks for any help.
VBAMicrosoft Word

Avatar of undefined
Last Comment

8/22/2022 - Mon