How to set an intonation in words?

Tooki 20 Reputation points
2025-03-15T10:06:34.4833333+00:00

For example, when I type something which contains 'co' in a word (e.g. concord), how do I make the word automatically turn into 'cawncawrd'? I know the AutoCorrect box could do the thing, but it would take a long time to set a huge list of words. Is there a quicker way to create something like a prefix, and activates whenever I type a part in a word 'co', and turns the 'co' into 'caw'?

Word Management
Word Management
Word: A family of Microsoft word processing software products for creating web, email, and print documents.Management: The act or process of organizing, handling, directing or controlling something.
999 questions
0 comments No comments
{count} votes

Accepted answer
  1. Jiajing Hua 17,965 Reputation points
    2025-03-17T05:29:00.76+00:00

    Hi @Tooki

    I suggest you use VBA code to change the "co" to "caw".

    Go to Word, press Alt + F11 to open VBA Editor.

    Please paste the following code in "ThisDocument" object.

    Sub ReplaceCoWithCaw()
        Dim rng As Range
        Set rng = ActiveDocument.Range
        With rng.Find
            .Text = "co"
            .Replacement.Text = "caw"
            .Execute Replace:=wdReplaceAll
        End With
    End Sub
    
    

    enter image description here

    When you want to replace "co" with "caw", please press Alt + F8, run "ReplaceCoWithCaw" macro.********************************************

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


    2 people found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Charles Kenyon 3,121 Reputation points
    2025-03-19T23:31:06.3366667+00:00

    You can use Jay Freedman's AutoCorrect2007 utility to add masses of AutoCorrect entries (as well as backup and restore your AutoCorrect entry list).

    You can find that here: http://jay-freedman.info/

    What is it you are trying to accomplish doing this? Using such a macro or AutoCorrect to replace text ordinarily used is likely to cause damage to your text.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.