code to calculate numofwords to seconds

F

FotoArt

hello everyone
im a reporter and i need to see how many seconds my words on each page
amount to.
basically my formula would be numofwords/90.

Iwant to enter a field that calculates this into the header of a word
document. So that it counts all the words in a page and gives it in seconds.

Any kind of help would be appreciated

thanx
ahmed
 
J

Jonathan West

FotoArt said:
hello everyone
im a reporter and i need to see how many seconds my words on each page
amount to.
basically my formula would be numofwords/90.

You can talk at 90 words/second? Wow!
Iwant to enter a field that calculates this into the header of a word
document. So that it counts all the words in a page and gives it in
seconds.

Any kind of help would be appreciated

There isn't a field that will dynamically display the number of words on a
single page in the header. You can get the total number of words in the
document by using the NUMWORDs field, and therefore you can get your number
of seconds using the following field combination

{ = { NUMWORDS } / 90 }

where the { } characters are field braces created by pressing Ctrl-F9

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

Cooz

Hi FotoArt

Place this field in your header:
{ = { NUMWORDS } / 90 \# "#,##" }

Insert the { } by pressing Ctrl-F9. The \# "#,##" - part defines a display
of 2 decimals. Look up "\# switch" in the Word help for additional info.

Success,
Cooz
 
S

Stefan Blom

But note that the field code given only works for those of us who have
a comma defined as the decimal sign (in Windows Control Panel,
Regional Options). If you are using a period instead, you have to type
that in the field code, too: { = { NUMWORDS } / 90 \# "#.##"}.

--
Stefan Blom
Microsoft Word MVP


in message
 

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