Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.tables
Khilna
 
Posts: n/a
Default exlcude tables in word count

Hello


Does anyone know how I can run the word count tool in
Word 97 and get it to exclude the words in tables and inside brackets from
the total word count?


Many thanks for your help.

Khilna



  #2   Report Post  
Posted to microsoft.public.word.tables
Jezebel
 
Posts: n/a
Default exlcude tables in word count

Save the document. Delete all tables and text in brackets. Get your word
count. Close without saving.



"Khilna" wrote in message
...
Hello


Does anyone know how I can run the word count tool in
Word 97 and get it to exclude the words in tables and inside brackets from
the total word count?


Many thanks for your help.

Khilna





  #3   Report Post  
Posted to microsoft.public.word.tables
Greg
 
Posts: n/a
Default exlcude tables in word count

For automating Jezebels suggestions you might use something like:

Sub ScratchMacro()
Dim myString As String
Dim oStoryRng As Word.Range
Dim i As Long

myString = ActiveDocument.FullName
ActiveDocument.Close wdSaveChanges
Documents.Open FileName:=myString
For i = ActiveDocument.Tables.Count To 1 Step -1
ActiveDocument.Tables(i).Delete
Next
For Each oStoryRng In ActiveDocument.StoryRanges
Do Until (oStoryRng Is Nothing)
With oStoryRng.Find
.ClearFormatting
.Replacement.ClearFormatting
.Text = "\{*\}"
.Replacement.Text = ""
.MatchWildcards = True
.Execute Replace:=wdReplaceAll
End With
Set oStoryRng = oStoryRng.NextStoryRange
Loop
Next
MsgBox ActiveDocument.ComputeStatistics(wdStatisticWords)
ActiveDocument.Close wdDoNotSaveChanges
Documents.Open FileName:=myString
End Sub

Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
apply a template to existing documents Bubba Gump Shrimp Page Layout 2 July 28th 05 04:46 PM
Does Word have Keyboard Merges like Word Perfect does? Donnas Mailmerge 1 June 28th 05 09:30 PM
Word2000 letterhead merge BAW Mailmerge 3 June 25th 05 01:17 PM
Underscore (_) will not always display in RTF files (Word 2002). David A Edge Microsoft Word Help 6 June 14th 05 10:39 AM
How do I create & merge specific data base & master documents? maggiev New Users 2 January 12th 05 11:30 PM


All times are GMT +1. The time now is 09:06 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"