Word Count in a protected form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do I enable the 'word count' facility in a Word 2000 document that has password protected sections (form protected). I want to enable the word count facility for users in the unprotected sections, but can't get it working
 
Hi =?Utf-8?B?TG91?=,
How do I enable the 'word count' facility in a Word 2000 document that has
password protected sections (form protected). I want to enable the word
count facility for users in the unprotected sections, but can't get it
workingCertain types of functionality simply aren't available in a document
protected as a form.

You can use a macro to get the number of words in the current section. Here's
one, you can assign it to a toolbar button (both saved in the form document
or its template, not in your Normal.dot!)

Sub WordCountInForm()
selection.Sections( _
1).Range.ComputeStatistics( _
wdStatisticWords)
End Sub

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep 30 2003)
http://www.mvps.org/word

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)
 
Back
Top