Auto capitalize after colon?

P

purromaniac

I do medical transcription, and my reports have to follow this format:

HEADING: Paragraph.

HEADING: Paragraph.

How can I get Word to auto capitalize the first word in the sentence
following the colon? Another transcriptionist asked this question in 2006
and was told it is not possible. Does anyone know if upgrading to Word 2007
would make a difference?
 
S

Suzanne S. Barnhill

No, there is no change in Word 2007 in this regard. Because capitalization
after a colon depends on context, it is unlikely ever to be made automatic.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org
 
G

Graham Mayor

You cannot do this automatically - apart from pressing the Shift key as
required - but you can run a macro to reformat the text in your document
that matches your layout eg

Sub FormatAfterColon()
Dim sFindText
Dim oRng As Range
sFindText = "[A-Z]: [a-z]"
Set oRng = ActiveDocument.Range
With oRng.Find
.Text = sFindText
Do While .Execute(Forward:=True, _
MatchWildcards:=True) = True
oRng.Case = wdUpperCase
oRng.Collapse wdCollapseEnd
Loop
End With
End Sub

This will format any upper case letter (your heading) followed immediately
by a colon two spaces and a lower case letter (your paragraph)
http://www.gmayor.com/installing_macro.htm

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
P

Peter T. Daniels

That's not what he/she says they want -- they want the first letter of
the word _after_ the colon to be capitalized automatically! (Like that
"feature" that automatically capitalizes the first word of a
"sentence.")

You cannot do this automatically - apart from pressing the Shift key as
required - but you can run a macro to reformat the text in your document
that matches your layout eg

Sub FormatAfterColon()
Dim sFindText
Dim oRng As Range
sFindText = "[A-Z]:  [a-z]"
Set oRng = ActiveDocument.Range
With oRng.Find
        .Text = sFindText
    Do While .Execute(Forward:=True, _
        MatchWildcards:=True) = True
        oRng.Case = wdUpperCase
        oRng.Collapse wdCollapseEnd
    Loop
End With
End Sub

This will format any upper case letter (your heading) followed immediately
by a colon two spaces and a lower case letter (your paragraph)http://www.gmayor.com/installing_macro.htm

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor -  Word MVP

My web sitewww.gmayor.com
Word MVP web sitehttp://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>


I do medical transcription, and my reports have to follow this format:
HEADING:  Paragraph.
HEADING:  Paragraph.
How can I get Word to auto capitalize the first word in the sentence
following the colon?  Another transcriptionist asked this question in
2006 and was told it is not possible.  Does anyone know if upgrading
to Word 2007 would make a difference?-
 
G

Graham Mayor

Did you read the first sentence of my reply?

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>


That's not what he/she says they want -- they want the first letter of
the word _after_ the colon to be capitalized automatically! (Like that
"feature" that automatically capitalizes the first word of a
"sentence.")

You cannot do this automatically - apart from pressing the Shift key
as
required - but you can run a macro to reformat the text in your
document
that matches your layout eg

Sub FormatAfterColon()
Dim sFindText
Dim oRng As Range
sFindText = "[A-Z]: [a-z]"
Set oRng = ActiveDocument.Range
With oRng.Find
.Text = sFindText
Do While .Execute(Forward:=True, _
MatchWildcards:=True) = True
oRng.Case = wdUpperCase
oRng.Collapse wdCollapseEnd
Loop
End With
End Sub

This will format any upper case letter (your heading) followed
immediately
by a colon two spaces and a lower case letter (your
paragraph)http://www.gmayor.com/installing_macro.htm

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web sitewww.gmayor.com
Word MVP web sitehttp://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>


I do medical transcription, and my reports have to follow this
format:
HEADING: Paragraph.
HEADING: Paragraph.
How can I get Word to auto capitalize the first word in the sentence
following the colon? Another transcriptionist asked this question in
2006 and was told it is not possible. Does anyone know if upgrading
to Word 2007 would make a difference?-
 
P

Peter T. Daniels

So why did you go to the trouble of writing a macro to do something
they didn't ask for a macro to do?

Did you read the first sentence of my reply?
That's not what he/she says they want -- they want the first letter of
the word _after_ the colon to be capitalized automatically! (Like that
"feature" that automatically capitalizes the first word of a
"sentence.")
You cannot do this automatically - apart from pressing the Shift key
as
required - but you can run a macro to reformat the text in your
document
that matches your layout eg
Sub FormatAfterColon()
Dim sFindText
Dim oRng As Range
sFindText = "[A-Z]: [a-z]"
Set oRng = ActiveDocument.Range
With oRng.Find
.Text = sFindText
Do While .Execute(Forward:=True, _
MatchWildcards:=True) = True
oRng.Case = wdUpperCase
oRng.Collapse wdCollapseEnd
Loop
End With
End Sub
This will format any upper case letter (your heading) followed
immediately
by a colon two spaces and a lower case letter (your
paragraph)http://www.gmayor.com/installing_macro.htm
--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP
My web sitewww.gmayor.com
Word MVP web sitehttp://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
purromaniac wrote:
I do medical transcription, and my reports have to follow this
format:
HEADING: Paragraph.
HEADING: Paragraph.
How can I get Word to auto capitalize the first word in the sentence
following the colon? Another transcriptionist asked this question in
2006 and was told it is not possible. Does anyone know if upgrading
to Word 2007 would make a difference?--
 
G

Graham Mayor

Read the second half of the first sentence of my reply.
The macro will achieve what the OP wanted - just not in the way requested.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

So why did you go to the trouble of writing a macro to do something
they didn't ask for a macro to do?

Did you read the first sentence of my reply?
That's not what he/she says they want -- they want the first letter
of the word _after_ the colon to be capitalized automatically!
(Like that "feature" that automatically capitalizes the first word
of a "sentence.")
On Nov 25, 2:00 am, "Graham Mayor" <[email protected]>
wrote:
You cannot do this automatically - apart from pressing the Shift
key as
required - but you can run a macro to reformat the text in your
document
that matches your layout eg
Sub FormatAfterColon()
Dim sFindText
Dim oRng As Range
sFindText = "[A-Z]: [a-z]"
Set oRng = ActiveDocument.Range
With oRng.Find
.Text = sFindText
Do While .Execute(Forward:=True, _
MatchWildcards:=True) = True
oRng.Case = wdUpperCase
oRng.Collapse wdCollapseEnd
Loop
End With
End Sub
This will format any upper case letter (your heading) followed
immediately
by a colon two spaces and a lower case letter (your
paragraph)http://www.gmayor.com/installing_macro.htm
My web sitewww.gmayor.com
Word MVP web sitehttp://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
purromaniac wrote:
I do medical transcription, and my reports have to follow this
format:
HEADING: Paragraph.
HEADING: Paragraph.
How can I get Word to auto capitalize the first word in the
sentence following the colon? Another transcriptionist asked this
question in 2006 and was told it is not possible. Does anyone
know if upgrading to Word 2007 would make a difference?--
 
P

Peter T. Daniels

I don't know what "reformat the text in your document that matches
your layout" means, but I do know what the last sentence in your reply
says: "This will format any upper case letter (your heading) followed
immediately by a colon two spaces and a lower case letter (your
paragraph)." It seems to say that it'll turn the word before the colon
into caps -- which apparently is what's already there. It doesn't say
anything about the lower case letter after the two spaces, which is
OP's focus.

If your macro _does_ do what OP requested, then you are guilty only of
expressing yourself quite poorly.

Read the second half of the first sentence of my reply.
The macro will achieve what the OP wanted - just not in the way requested..

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor -  Word MVP

My web sitewww.gmayor.com
Word MVP web sitehttp://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>


So why did you go to the trouble of writing a macro to do something
they didn't ask for a macro to do?
Did you read the first sentence of my reply?
Peter T. Daniels wrote:
That's not what he/she says they want -- they want the first letter
of the word _after_ the colon to be capitalized automatically!
(Like that "feature" that automatically capitalizes the first word
of a "sentence.")
On Nov 25, 2:00 am, "Graham Mayor" <[email protected]>
wrote:
You cannot do this automatically - apart from pressing the Shift
key as
required - but you can run a macro to reformat the text in your
document
that matches your layout eg
Sub FormatAfterColon()
Dim sFindText
Dim oRng As Range
sFindText = "[A-Z]: [a-z]"
Set oRng = ActiveDocument.Range
With oRng.Find
.Text = sFindText
Do While .Execute(Forward:=True, _
MatchWildcards:=True) = True
oRng.Case = wdUpperCase
oRng.Collapse wdCollapseEnd
Loop
End With
End Sub
This will format any upper case letter (your heading) followed
immediately
by a colon two spaces and a lower case letter (your
paragraph)http://www.gmayor.com/installing_macro.htm
--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP
My web sitewww.gmayor.com
Word MVP web sitehttp://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
purromaniac wrote:
I do medical transcription, and my reports have to follow this
format:
HEADING: Paragraph.
HEADING: Paragraph.
How can I get Word to auto capitalize the first word in the
sentence following the colon? Another transcriptionist asked this
question in 2006 and was told it is not possible. Does anyone
know if upgrading to Word 2007 would make a difference?---
 
S

Suzanne S. Barnhill

If you read "format" as "capitalize" (which is what the macro does with
"oRng.Case = wdUpperCase"), then it makes sense. The macro capitalizes the
text before the colon (as you point out, it is already capitalized) as well
as the first letter after it.

If you were the OP in this case, one would hope that you would have tried
the macro before saying it didn't do what was asked. Since you are not the
OP, you should at least try it before pointing out its inadequacy.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org

I don't know what "reformat the text in your document that matches
your layout" means, but I do know what the last sentence in your reply
says: "This will format any upper case letter (your heading) followed
immediately by a colon two spaces and a lower case letter (your
paragraph)." It seems to say that it'll turn the word before the colon
into caps -- which apparently is what's already there. It doesn't say
anything about the lower case letter after the two spaces, which is
OP's focus.

If your macro _does_ do what OP requested, then you are guilty only of
expressing yourself quite poorly.

Read the second half of the first sentence of my reply.
The macro will achieve what the OP wanted - just not in the way requested.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web sitewww.gmayor.com
Word MVP web sitehttp://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>


So why did you go to the trouble of writing a macro to do something
they didn't ask for a macro to do?
Did you read the first sentence of my reply?
Peter T. Daniels wrote:
That's not what he/she says they want -- they want the first letter
of the word _after_ the colon to be capitalized automatically!
(Like that "feature" that automatically capitalizes the first word
of a "sentence.")
On Nov 25, 2:00 am, "Graham Mayor" <[email protected]>
wrote:
You cannot do this automatically - apart from pressing the Shift
key as
required - but you can run a macro to reformat the text in your
document
that matches your layout eg
Sub FormatAfterColon()
Dim sFindText
Dim oRng As Range
sFindText = "[A-Z]: [a-z]"
Set oRng = ActiveDocument.Range
With oRng.Find
.Text = sFindText
Do While .Execute(Forward:=True, _
MatchWildcards:=True) = True
oRng.Case = wdUpperCase
oRng.Collapse wdCollapseEnd
Loop
End With
End Sub
This will format any upper case letter (your heading) followed
immediately
by a colon two spaces and a lower case letter (your
paragraph)http://www.gmayor.com/installing_macro.htm
--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP
My web sitewww.gmayor.com
Word MVP web sitehttp://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
purromaniac wrote:
I do medical transcription, and my reports have to follow this
format:
HEADING: Paragraph.
HEADING: Paragraph.
How can I get Word to auto capitalize the first word in the
sentence following the colon? Another transcriptionist asked this
question in 2006 and was told it is not possible. Does anyone
know if upgrading to Word 2007 would make a difference?---
 
P

Peter T. Daniels

I wasn't looking at the macro, I was looking at the "documentation" of
the macro -- which is supposed to tell you what it's supposed to do!

If you read "format" as "capitalize" (which is what the macro does with
"oRng.Case = wdUpperCase"), then it makes sense. The macro capitalizes the
text before the colon (as you point out, it is already capitalized) as well
as the first letter after it.

If you were the OP in this case, one would hope that you would have tried
the macro before saying it didn't do what was asked. Since you are not the
OP, you should at least try it before pointing out its inadequacy.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USAhttp://word.mvps.org

I don't know what "reformat the text in your document that matches
your layout" means, but I do know what the last sentence in your reply
says: "This will format any upper case letter (your heading) followed
immediately by a colon two spaces and a lower case letter (your
paragraph)." It seems to say that it'll turn the word before the colon
into caps -- which apparently is what's already there. It doesn't say
anything about the lower case letter after the two spaces, which is
OP's focus.

If your macro _does_ do what OP requested, then you are guilty only of
expressing yourself quite poorly.

Read the second half of the first sentence of my reply.
The macro will achieve what the OP wanted - just not in the way requested.
My web sitewww.gmayor.com
Word MVP web sitehttp://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Peter said:
So why did you go to the trouble of writing a macro to do something
they didn't ask for a macro to do?
Did you read the first sentence of my reply?
Peter T. Daniels wrote:
That's not what he/she says they want -- they want the first letter
of the word _after_ the colon to be capitalized automatically!
(Like that "feature" that automatically capitalizes the first word
of a "sentence.")
On Nov 25, 2:00 am, "Graham Mayor" <[email protected]>
wrote:
You cannot do this automatically - apart from pressing the Shift
key as
required - but you can run a macro to reformat the text in your
document
that matches your layout eg
Sub FormatAfterColon()
Dim sFindText
Dim oRng As Range
sFindText = "[A-Z]: [a-z]"
Set oRng = ActiveDocument.Range
With oRng.Find
.Text = sFindText
Do While .Execute(Forward:=True, _
MatchWildcards:=True) = True
oRng.Case = wdUpperCase
oRng.Collapse wdCollapseEnd
Loop
End With
End Sub
This will format any upper case letter (your heading) followed
immediately
by a colon two spaces and a lower case letter (your
paragraph)http://www.gmayor.com/installing_macro.htm
--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP
My web sitewww.gmayor.com
Word MVP web sitehttp://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
purromaniac wrote:
I do medical transcription, and my reports have to follow this
format:
HEADING: Paragraph.
HEADING: Paragraph.
How can I get Word to auto capitalize the first word in the
sentence following the colon? Another transcriptionist asked this
question in 2006 and was told it is not possible. Does anyone
know if upgrading to Word 2007 would make a difference?----
 
G

Greg Maxey

Let him run. He is doing a fantastic job pointing out his own arrogance and
stupidity.
If you read "format" as "capitalize" (which is what the macro does
with "oRng.Case = wdUpperCase"), then it makes sense. The macro
capitalizes the text before the colon (as you point out, it is
already capitalized) as well as the first letter after it.

If you were the OP in this case, one would hope that you would have
tried the macro before saying it didn't do what was asked. Since you
are not the OP, you should at least try it before pointing out its
inadequacy.

Read the second half of the first sentence of my reply.
The macro will achieve what the OP wanted - just not in the way
requested. --
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web sitewww.gmayor.com
Word MVP web sitehttp://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>


So why did you go to the trouble of writing a macro to do something
they didn't ask for a macro to do?
On Nov 25, 9:40 am, "Graham Mayor" <[email protected]>
wrote:
Did you read the first sentence of my reply?
Peter T. Daniels wrote:
That's not what he/she says they want -- they want the first
letter of the word _after_ the colon to be capitalized
automatically! (Like that "feature" that automatically
capitalizes the first word of a "sentence.")
On Nov 25, 2:00 am, "Graham Mayor" <[email protected]>
wrote:
You cannot do this automatically - apart from pressing the Shift
key as
required - but you can run a macro to reformat the text in your
document
that matches your layout eg
Sub FormatAfterColon()
Dim sFindText
Dim oRng As Range
sFindText = "[A-Z]: [a-z]"
Set oRng = ActiveDocument.Range
With oRng.Find
.Text = sFindText
Do While .Execute(Forward:=True, _
MatchWildcards:=True) = True
oRng.Case = wdUpperCase
oRng.Collapse wdCollapseEnd
Loop
End With
End Sub
This will format any upper case letter (your heading) followed
immediately
by a colon two spaces and a lower case letter (your
paragraph)http://www.gmayor.com/installing_macro.htm
My web sitewww.gmayor.com
Word MVP web sitehttp://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
purromaniac wrote:
I do medical transcription, and my reports have to follow this
format:
HEADING: Paragraph.
HEADING: Paragraph.
How can I get Word to auto capitalize the first word in the
sentence following the colon? Another transcriptionist asked
this question in 2006 and was told it is not possible. Does
anyone know if upgrading to Word 2007 would make a
difference?---
 

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