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
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