How to automatically convert first character after dash to uppercase

Hi,

is there a way to automatically convert the first character after a dash sign (-) to uppercase in Word 2007?

Thanks?

You could create an autocorrect entry for each one.
Hope this helps,
Doug Robbins - MVP Office Apps & Services (Word)
dougrobbinsmvp@gmail.com
It's time to replace ‘Diversity, Equity & Inclusion’ with ‘Excellence, Opportunity & Civility’ - V Ramaswamy

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

There is nothing built in that will capitalize the word after a dash. You're probably thinking of the AutoCorrect option (in Word Options > Proofing > AutoCorrect Options) to "Capitalize first letter of sentences". However, that option recognizes only periods, question marks, exclamation marks, and paragraph marks as the ends of sentences, indicating that the next word starts a new sentence.

If you must use a dash before a new sentence, your choices are to use the Shift key to capitalize the word while you're typing it, or to click the word later and press Shift+F3 (the shortcut for the Change Case command) or use the Change Case button in the Font group on the Home tab.
_____________________________
https://jay-freedman.info

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

If it is the same dash and word over again, save as Auto Text. To do so: Select dashed words and at “Insert” tab in “Text” area choose “Quick Parts” drop down arrow and then “Auto Text, and then “Save Selection to Auto Text Gallery.”  When you start typing the dash w/word the selection will appear on the screen--you can then just hit enter.

 

Also, if the dash is placed at the "first line indent" tab place the next word will start as uppercase. Also uppercase will appear after a dash style bullet.

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

I like Doug's suggestion best.  Easy to do (and later undo if you want) with macros:

Sub CreateACEntries()
'A basic Word macro coded by Greg Maxey
Dim lngIndex As Long
For lngIndex = 97 To 122
AutoCorrect.Entries.Add Name:="-" & Chr(lngIndex), Value:=UCase("-" & Chr(lngIndex))
Next lngIndex
End Sub

Sub DeleteACEntries()
'A basic Word macro coded by Greg Maxey
Dim oAC As AutoCorrectEntry
For Each oAC In AutoCorrect.Entries
  If oAC.Name Like "-[a-z]" Then
    oAC.Delete
  End If
Next oAC
End Sub


See: http://gregmaxey.mvps.org/word_tip_pages/installing_employing_macros.html for instructions to employ the VBA code provided above.


Greg Maxey
***
Death smiles at us all, but all a man can do is smile back.


For more help with Word visit:
http://gregmaxey.com/word_tips.html

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

 
 

Question Info


Last updated May 9, 2024 Views 1,609 Applies to: