Slowness in accessing Header/Footer StoryRanges

E

Edgar E. Cayce

I have made a few other posts about my character counting project, and
I am hoping someone can shed some light on this particular issue.

I have to count characters to get a line count of a document, and do
some work to find out the number of bold, italic, etc. in each area of
the doc (body, header/footer, and endnote/footnote/everything else).

I have addressed some problems with counting ranges in other posts;
the problem I am having here is that when I try to access a range that
is in the Header or Footer, it takes a long time (10-20 seconds) for
the first access to the range. Now, if the doc were visible, I could
see it taking time to show the header, but I do this with .Visible set
to False for Word. Subsequent access to that range do not take so
long.

Any idea why the first access to a header/footer story range takes so
long and how to speed it up?

Ed
 
W

Word Heretic

G'day Edgar E. Cayce <[email protected]>,

There are two really cool objects you may get some joy from.

Range.Information(whHeapsOfStuff)

and

Range.ComputeStatistics(whHeapsOfStuff)

Steve Hudson - Word Heretic
Want a hyperlinked index? S/W R&D? See WordHeretic.com

steve from wordheretic.com (Email replies require payment)


Edgar E. Cayce reckoned:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top