Need Index # of current line/para/word [cont. after delay]

J

Jonathan West

Hi Avraham,

In that case, I recommend that you base the progress bar on the
Selection.End property. You are counting characters rather than sentences,
but what you are looking for (if i understand your requirements correctly)
is a rough guide as to the percentage of the document that you have
completed. Comparing Selection.End with ActiveDocument.Range.End should
provide you with a perfectly adequate measure of progress.

--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
 
A

Avraham Makeler

Thanks for the response.
I get the answer 27785 in a second.
For me, that's terrible. I need to display the progress of many hundreds or
even thousands of hits. Even if I only call the progress bar once every 10
hits this is still an unacceptable overhead --- and I will also get a jumpy
bar.

Thanks.

Avraham.

(Btw, greetings from Israel.)
Well, I am sure that counting sentences does not work very well on our
machines, so if paras and words take as long then they also won't work.
Maybe I will get around to trying them later.

Thanks.

Avraham.
 

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