Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Long Documents / July 2003

Tip: Looking for answers? Try searching our database.

Staus bar - time

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alexander - 06 Jul 2003 10:01 GMT
Hi to all.

I have something as:

function my_f()
dim Characters_Quantity as long
StatusBar = "Retrieving the document size..."
Characters_Quantity = ActiveDocument.Characters.Count
end function

In long document it could take some time. I want to include in StatusBar
some kind of custom counter (means in seconds like: 1, 2, 3...) so while
code counting my StatusBar would looks like:

Retrieving the document size... 1
Retrieving the document size... 2
Retrieving the document size... 3
. . .

What should I write instead of X?

StatusBar = "Retrieving the document size..." & X

(Windows 95; Word6; very basic libraries included (or Word97))

Tnx in advance,

Alex

PS
Is there any better (faster) way to count characters quantity in acitve
document?
Graham Mayor - 06 Jul 2003 11:45 GMT
I don't know about Word 6 - it's been a while - but more recent Word
versions have this kind of information to hand through the document
properties.

A {DOCPROPERTY  Characters } field would return the number of characters in
the document - instantly! You would of course need to update the field if
you changed the number of characters.

Did Word 97 have Tools > Word Count? This reports the relevant
docproperties.

Signature

<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
    Graham Mayor -  Word MVP
      E-mail gmayor@mvps.org
  Web site www.gmayor.dsl.pipex.com
 Word MVP web site www.mvps.org/word
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>

> Hi to all.
>
[quoted text clipped - 28 lines]
> Is there any better (faster) way to count characters quantity in
> acitve document?
Alexander - 06 Jul 2003 13:55 GMT
Thank you Graham

But I need it in macro (vb) - not in document or form field.
The only code I've found is
i = ActiveDocument.Characters.Count
and while code retrieving this I need to display time in seconds in my
StatusBar (from 1).

Tnx again,

Alex

> I don't know about Word 6 - it's been a while - but more recent Word
> versions have this kind of information to hand through the document
[quoted text clipped - 47 lines]
> > Is there any better (faster) way to count characters quantity in
> > acitve document?
geneus - 06 Jul 2003 19:48 GMT
Try this link:

http://www.mvps.org/vbnet/index.html?code/comctl/progbarinstatbar.htm

-Gene

> Hi to all.
>
[quoted text clipped - 28 lines]
> Is there any better (faster) way to count characters quantity in acitve
> document?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.