Using Ctrl-Clicking and dragging, select all but the references (when
text is selected, word displays the count of selected text: if not
directly in the status bar, then when you click on the count number
there); or, format each reference as Hidden text. (Word doesn't count
Hidden text.)
On Jan 8, 3:03 pm, Leane_88 <Leane...@discussions.microsoft.com>
wrote:
Hidden text *is* counted when the print hidden text option is active. This gives one the ability to mark the references as hidden
text and, by toggling between the print/not print hidden text options, get the word count or print the document with/without hidden
text.
--
Cheers
macropod
[Microsoft MVP - Word]
"Peter T. Daniels" <gram...@verizon.net> wrote in message
news:578a8b50-ae2b-4655...@u20g2000vbq.googlegroups.com...
On Jan 8, 10:41 pm, "macropod" <macro...@invalid.invalid> wrote:
> Hi Peter,
>
> Hidden text *is* counted when the print hidden text option is active. This gives one the ability to mark the references as hidden
> text and, by toggling between the print/not print hidden text options, get the word count or print the document with/without hidden
> text.
>
> --
> Cheers
> macropod
> [Microsoft MVP - Word]
>
> "Peter T. Daniels" <gramma...@verizon.net> wrote in messagenews:578a8b50-ae2b-4655...@u20g2000vbq.googlegroups.com...
> Not without considerable tedium, though it might be possible to create
> a macro to do this?
>
> Using Ctrl-Clicking and dragging, select all but the references (when
> text is selected, word displays the count of selected text: if not
> directly in the status bar, then when you click on the count number
> there); or, format each reference as Hidden text. (Word doesn't count
> Hidden text.)
>
> On Jan 8, 3:03 pm, Leane_88 <Leane...@discussions.microsoft.com>
> wrote:
>
>
>
> > Hi,
> > I'm writing an essay in which the tutor would like us to not include the
> > references (Author and Date) within the word count. Is there a way that I can
> > exclude any words within the brackets from the word count as they all have
> > different names etc?
> > Thanks
> > Leane-
>Don't you get the same effect just by toggling Show/Hide Hidden Text?
No. Only changing the print setting affects the word count. You can verify this with a NUMWORDS field.
Assuming the references are in a form like (Tinsley, 1965, p15) or (Tinsley, 1965), one could probably use a wildcard Find/Replace
to make the references hidden, with-
Find: \([!\,]{1,10}\, [0-9]{3}[!\)]{1,}\)
Replace: ^&
and the replacement text set to hidden.
--
Cheers
macropod
[Microsoft MVP - Word]
"Peter T. Daniels" <gram...@verizon.net> wrote in message
news:efa4aca5-fd12-41a4...@p23g2000vbl.googlegroups.com...
On Jan 9, 2:05 am, "macropod" <macro...@invalid.invalid> wrote:
> Hi Peter,
>
> >Don't you get the same effect just by toggling Show/Hide Hidden Text?
>
> No. Only changing the print setting affects the word count. You can verify this with a NUMWORDS field.
>
> Assuming the references are in a form like (Tinsley, 1965, p15) or (Tinsley, 1965), one could probably use a wildcard Find/Replace
> to make the references hidden, with-
> Find: \([!\,]{1,10}\, [0-9]{3}[!\)]{1,}\)
> Replace: ^&
> and the replacement text set to hidden.
>
> --
> Cheers
> macropod
> [Microsoft MVP - Word]
>
> "Peter T. Daniels" <gramma...@verizon.net> wrote in messagenews:efa4aca5-fd12-41a4...@p23g2000vbl.googlegroups.com...
> > > Leane--
Sub ScratchMaco()
Dim oWord As Range
Dim i As Long
i = 0
For Each oWord In ActiveDocument.Range.Words
If Not oWord.Style = "Reference" Then
If Len(Trim(oWord)) > 1 Then
i = i + 1
Else
If Trim(oWord) Like "[A-Za-z]" Then
i = i + 1
End If
End If
End If
Next oWord
MsgBox i
End Sub
"Peter T. Daniels" <gram...@verizon.net> wrote in message
news:578a8b50-ae2b-4655...@u20g2000vbq.googlegroups.com...
"Greg Maxey" <gma...@mIKEvICTORpAPAsIERRA.oSCARrOMEOgOLF> wrote in message
news:O8KjTtTk...@TK2MSFTNGP05.phx.gbl...
> In Chicago style, for instance, there can be up to three authors
> per reference, and if there are more than three you use "et al."
Fair enough, but the basic Find code I posted can handle things like that - at most one might need to increase the 10 in {1,10} to,
say, 20. The only thing that needs to be watched for is that other, non-reference, bracketed expressions (with commas & 3-digit+
numbers in them) don't inadvertently get processed.
--
Cheers
macropod
[Microsoft MVP - Word]
"Peter T. Daniels" <gram...@verizon.net> wrote in message news:5beba1b1-fd69-4267...@j5g2000yqm.googlegroups.com...