Word tutorial

How to repeat text in Microsoft Word.

Word doesn't have a REPT function, but there are three solid ways to repeat text — pick whichever fits your use case.

Method 1: The copy-paste trick (small N)

For small numbers (5-20 repetitions), brute force works:

  1. Type your text once and select it
  2. Press Ctrl+C to copy
  3. Press Ctrl+V N times

Or use the "find and replace" trick: type the text 5 times, select all 5, copy, then keep pasting. Each paste doubles your text in chunks.

Method 2: Quick Parts AutoText

If you repeat the same phrase often (form letters, boilerplate):

  1. Type the text, then select it
  2. Insert → Quick Parts → AutoText → Save Selection to AutoText Gallery
  3. Give it a name, then type that name and press F3 to expand it

Useful for repetition with edits between (like personalized greetings).

Method 3: VBA macro (large N)

For larger counts, a macro is fastest. Press Alt+F11 to open the VBA editor, paste this, and run it:

Sub RepeatText()
    Dim s As String
    s = InputBox("Text to repeat:")
    Dim n As Integer
    n = InputBox("How many times:")
    Dim i As Integer
    For i = 1 To n
        Selection.TypeText Text:=s & vbCrLf
    Next i
End Sub

Save the macro, run it, enter the text and count, and Word will insert the repeated text at your cursor.

The fastest option for one-off repetition

If you just need a long repeated string once, use our browser-based repeater: type, set count, click Copy, paste into Word. Faster than opening the VBA editor.

Common questions

Frequently asked.

Not directly. Find & Replace replaces existing text, it doesn't multiply it. The macro method is the closest Word equivalent of Excel's REPT.

Yes — VBA macros work the same way on Mac. The keyboard shortcut to open the editor is Option+F11 on macOS.

Modify the macro: change Selection.TypeText Text:=s & vbCrLf to Selection.TypeText Text:=i & ". " & s & vbCrLf

Related reading

More articles.