Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-11-2014, 08:15 AM
Amazingt Amazingt is offline how citation excluded in word count Windows 7 64bit how citation excluded in word count Office 2010 64bit
Novice
how citation excluded in word count
 
Join Date: May 2014
Posts: 1
Amazingt is on a distinguished road
Default how citation excluded in word count

Hi. How do i excluded word count for citation of referent in my work? i found it actually exist maybe some specific setting to enable it because practically i found there's people did it.
Reply With Quote
  #2  
Old 05-11-2014, 08:28 AM
macropod's Avatar
macropod macropod is offline how citation excluded in word count Windows 7 32bit how citation excluded in word count Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,363
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

To exclude them, you would need to count the words in them; Word doesn't have an automatic way of doing this. The following macro will count all words in citations and the bibliography:
Code:
Sub CountReferenceWords()
Dim FtNt As Footnote, EndNt As Endnote
Dim Fld As Field, i As Long, j As Long, k As Long
With ActiveDocument
  For Each Fld In .Fields
    If Fld.Type = wdFieldCitation Then
      i = i + UBound(Split(Fld.Result, " ")) + 1
    ElseIf Fld.Type = wdFieldBibliography Then
      j = UBound(Split(Fld.Result, " ")) + 1
    End If
  Next
  For Each FtNt In .Footnotes
    For Each Fld In FtNt.Range.Fields
      If Fld.Type = wdFieldCitation Then
        k = k + UBound(Split(Fld.Result, " ")) + 1
      End If
    Next
  Next
  For Each EndNt In .Endnotes
    For Each Fld In EndNt.Range.Fields
      If Fld.Type = wdFieldCitation Then
        k = k + UBound(Split(Fld.Result, " ")) + 1
      End If
    Next
  Next
End With
MsgBox "Citation words in the body: " & i & vbCr & _
"Citation words in footnotes & endnotes: " & k & vbCr & _
"Bibliography words : " & j
End Sub
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Word Count Formula clau_dos Word VBA 1 08-27-2013 02:05 PM
Word Count Richtriebe Word 1 04-20-2013 11:09 AM
how citation excluded in word count Inconsistent citation styles in word 2013 dylansmith Word 2 01-26-2013 06:58 PM
how citation excluded in word count Word Count in Excel dallas Excel 1 11-23-2011 09:20 AM
Word - citation language jakudo Word 0 04-20-2010 05:15 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:27 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft