Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Word Count Macro

13 views
Skip to first unread message

Laszlo Tetmajer

unread,
Aug 13, 2001, 6:32:30 PM8/13/01
to
Hello,
I have been looking for a macro to get word count and keep a constant
display of it somehow. The Word Processor in use is Microsoft Word.
I am a programmer, so I would be able to program it myself if given proper
direction. I am new to the language and haven't gotten the functions down
quite yet.

Thank you for any help at all,
Rory Brown
ltet...@in-tch.com

Graham Mayor

unread,
Aug 14, 2001, 3:25:43 AM8/14/01
to
Have you thought about using a NUMWORDS field in the last page footer?

{IF {PAGE}={NUMPAGES} "{NUMWORDS}"""}

It will not update constantly, but can simply be updated as required.

--

<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
Graham Mayor <gma...@btinternet.com>
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>

"Laszlo Tetmajer" <ltet...@in-tch.com> wrote in message
news:3b78...@news.in-tch.com...

Laszlo Tetmajer

unread,
Aug 15, 2001, 4:41:37 PM8/15/01
to
I'm afraid I couldn't get that to work well. The variables are completely
blank when I try to use them. They have no numbers in them. Perhaps if I
had the variable of the number of words counted by Word in a document then I
could use this to display the info.

Thanks,
Rory Brown

"Graham Mayor" <gma...@btinternet.com> wrote in message
news:uP0OrcKJBHA.1304@tkmsftngp04...

Suzanne S. Barnhill

unread,
Aug 15, 2001, 9:22:53 PM8/15/01
to
They're not variables, they're fields. You have to insert each one by
pressing Ctrl+F9 to get the field delimiters (the things that look like
braces), then type the field names between them. Then F9 to update them. In
fact, the syntax can be expressed more simply thus:

{ IF { PAGE } = { NUMPAGES } { NUMWORDS } }

because fields don't have to be put in quotes and the FalseText doesn't have
to be explicitly stated when there is none.

--
Suzanne S. Barnhill
Microsoft Word MVP
Words into Type
Fairhope, AL USA

"Laszlo Tetmajer" <ltet...@in-tch.com> wrote in message

news:3b7a...@news.in-tch.com...

Charles Kenyon

unread,
Aug 19, 2001, 4:25:50 PM8/19/01
to
Keep in mind that Word's Word Count does not include words in footnotes or
endnotes. (Word 97)

See <URL: http://support.microsoft.com/support/kb/articles/Q239/4/23.ASP>
and <URL: http://support.microsoft.com/support/kb/articles/Q241/3/16.ASP>.
This second link gives a macro for giving the word count of a selection. It
may be a good starting place for you.

Hope this helps,
--
Charles Kenyon

Word New User FAQ & Web Directory:
<URL: http://www.addbalance.com/word/index.htm>
Backup <URL: http://www.kenyonck.addr.com/word/index.htm>

Legal Users' Guide to Microsoft Word (supplemented)
<URL: http://www.addbalance.com/usersguide/index.htm>
Backup: <URL: http://www.kenyonck.addr.com/usersguide/index.htm>
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.

"Laszlo Tetmajer" <ltet...@in-tch.com> wrote in message
news:3b78...@news.in-tch.com...

0 new messages