View Single Post
 
Old 09-20-2015, 04:22 PM
gmaxey gmaxey is offline Windows 7 32bit Office 2010 (Version 14.0)
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,617
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

Marrick,

The method Graham and I used looped through each element of an array and searched for each element of that array in the Heading 1 text. Apparently that process simply takes more time than looping though a simple count and evaluating InStr. It is hardly noticeable with one or two heading but certainly apparent in large documents as Paul demonstrated.

He is usually pretty good at seeing those efficiencies and school all of us here.
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote