Cited Reference Count?

M

ML

Is there a way to reference a field with the number of references in a
document, similar to page count?
Looking to list the total number of cited references in a document.
 
G

G.G.Yagoda

This simple macro will count the fields for you.

Sub CountFields ()
Dim Fld As Field, FldCnt As Integer
For Each Fld In ActiveDocument.Fields
If InStr(Fld.Code, "NAME OF FIELD") > 0 Then FldCnt = FldCnt + 1
Next
MsgBox "There are " & FldCnt & " fields.", , "Field Count"
End Sub

Obviously you have to replace "NAME OF FIELD" above with the actual
name of the field, like " REF" or " PAGEREF" or whatever it is.
 
D

Daiya Mitchell

Please explain further. What do you mean by cited references, and how are
they marked in your text?
 
D

Daiya Mitchell

So you want to know how many sources you cited?
Or you want to know how many times each source was cited?
Or you want to know the total of how many times you cited any source at all,
even if it was a repeat citation?

And how are they marked in your text?

In my doc, I would use footnotes, and the number of footnotes would be the
number of cited references. Depending on what distinguishes the references
from all other text, someone may be able to help you count them easily.
 
M

ML

Our references are basically a number list at the end if the document. I
just would like to get the total number of items in the list if possible.
The list has its own style defined.

Is there someway to get the total items in a numbered list based on the
style type? i.e. total count for just this list?
 

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