View Single Post
 
Old 12-21-2020, 03:49 PM
Chopper Chopper is offline Windows 10 Office 2019
Novice
 
Join Date: Dec 2020
Posts: 16
Chopper is on a distinguished road
Default

Epigram - Finally solved the speed problem by using the following approach:

dim p as Paragraph
-
-
for each p in p.activedocument.paragraphs
pgphRange = p.Range.test
-
-
yadda, yadda processing contents of pgphRange ...
-
-
Next p

Runs like lightning (8000+ lines/paragraphs in under 10 seconds!), no need to delete processed lines/paragraphs, less code, whiz-bang!

I'm such a dumb@ss for not figuring this out 3 days ago.

Thanks all for helping to point me in the right direction.
Reply With Quote