Results 1 to 6 of 6
  1. #1
    New Lounger
    Join Date
    Oct 2004
    Location
    Virginia, USA
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Preventing hyphenation of a word (2000)

    I have a word that is really an acronym (TAWSObj). I've got automatic hyphenation on. Word is reading this as a word and is hyphenating it. Is there a way to prevent hyphenation of just this word?

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Preventing hyphenation of a word (2000)

    If you select the word, then select Tools | Language | Set Language... and tick "Do not check spelling or grammar", the word will not be hyphenated.

  3. #3
    Lounger
    Join Date
    Sep 2002
    Location
    Arlington, Massachusetts, USA
    Posts
    32
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Preventing hyphenation of a word (2000)

    Very useful! Thank you.

    BUT is there any way short of writing a macro and running it on my documents to keep EVERY instance of a particular word in that document intact? Example: If my company's name was Somewhere and I never wanted to see Some- where, is there any way to "paint" that word with a never-hyphenate-me-ever brush?

    Thanks in advance for any help!

    ksalazar, proposal drone

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Preventing hyphenation of a word (2000)

    Try the following:
    - Select Edit | Replace...
    - Type the word you want to "protect" in the Find what box.
    - Type ^& in the Replace with box (this is the code for the find text, whatever that is)
    - Click the More button.
    - Click the Format dropdown button and select Language...
    - Tick the check box "Do not check spelling or grammar".
    - Click OK.
    - Click Replace All.

  5. #5
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Preventing hyphenation of a word (2000)

    I know that you said "short of writing a macro", but how about using a Macro I have already written <img src=/S/grin.gif border=0 alt=grin width=15 height=15>

    I have this attached to a toolbar button, and use it by selecting one instance of the name or other text I want to be set to No Proofing and then clicking the toolbar button. It sets the current selection to "No Proofing" and then, if the selection is reasonably short, replaces all other occurences of the same phrase.

    StuartR
    <code>
    Public Sub NoProofing()
    Dim OldText As String

    OldText = Trim(Selection.Range.Text)

    If OldText <> "" Then
    Selection.LanguageID = wdNoProofing
    If Selection.Words.Count < 4 Or Selection.Characters.Count < 25 Then
    With ActiveDocument.Content.Find
    .ClearFormatting
    .Replacement.ClearFormatting
    .Replacement.LanguageID = wdNoProofing
    .Text = Selection.Range.Text
    .Replacement.Text = "^&"
    .Forward = True
    .Wrap = wdFindContinue
    .Format = True
    .MatchCase = True
    .MatchWholeWord = True
    .MatchWildcards = False
    .MatchSoundsLike = False
    .MatchAllWordForms = False
    .Execute Replace:=wdReplaceAll
    .Replacement.ClearFormatting
    End With
    End If
    End If
    End Sub
    </code>

  6. #6
    Lounger
    Join Date
    Sep 2002
    Location
    Arlington, Massachusetts, USA
    Posts
    32
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Preventing hyphenation of a word (2000)

    Thank you both Hans and Stuart. Hans' solution works for the Crisis du Jour. Stuart's will take care of Crises To Come. You've saved me yet again.

    <img src=/S/hailpraise.gif border=0 alt=hailpraise width=27 height=22> Quivering in gratitude,
    ksalazar, proposal drone

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •