locked
Replacing 5 Consecutive Spaces With Tabs In Word Document RRS feed

  • Question

  • I'm editing a manuscript in the most recent version of Word. The author used 5 consecutive spaces instead of Tabs. I need to go through 300 pages to replace these. How do I do a Search and Replace for 5 consecutive spaces to be replaced with a tab?

    When I use Whitespace search and replace with Tabs, it does everything, even spaces in between words. I need to be able to quantify the string of 5 spaces only.

    • Moved by Youjun Tang Monday, February 9, 2015 3:22 AM more related to suggestion forum
    Sunday, February 8, 2015 2:00 AM

Answers

  • Hi

    Does the Word 'Replace' dialog, with search set to '     '   (5 spaces), and the replace set to '^t' (Special Char - tab), not work for you? It works fine here without any interference to single spaced words etc.

    BTW: this isn't the correct forum for this question.


    Regards Les, Livingston, Scotland


    • Edited by leshay Sunday, February 8, 2015 2:13 AM
    • Proposed as answer by Charles Kenyon Monday, February 9, 2015 3:52 AM
    • Unproposed as answer by George123345 Monday, February 16, 2015 6:26 AM
    • Proposed as answer by George123345 Monday, February 16, 2015 6:26 AM
    • Marked as answer by George123345 Tuesday, February 17, 2015 2:46 AM
    Sunday, February 8, 2015 2:11 AM
  • Jasmine,

    If you want to get very specific, below is an advance Find/Replace option for you to try:

    Select both the "Use wildcards" and "Ignore white-space characters" boxes.

    Then type the following criteria for Find:

    ^32{5,}

    Type the following criteria for Replace:

    ^09

    The ^32 is a "space character" and ^09 represents a "tab character".

    Good luck!

    -Greg

    • Proposed as answer by George123345 Monday, February 16, 2015 6:26 AM
    • Marked as answer by George123345 Tuesday, February 17, 2015 2:46 AM
    Friday, February 13, 2015 4:32 PM

All replies

  • Hi

    Does the Word 'Replace' dialog, with search set to '     '   (5 spaces), and the replace set to '^t' (Special Char - tab), not work for you? It works fine here without any interference to single spaced words etc.

    BTW: this isn't the correct forum for this question.


    Regards Les, Livingston, Scotland


    • Edited by leshay Sunday, February 8, 2015 2:13 AM
    • Proposed as answer by Charles Kenyon Monday, February 9, 2015 3:52 AM
    • Unproposed as answer by George123345 Monday, February 16, 2015 6:26 AM
    • Proposed as answer by George123345 Monday, February 16, 2015 6:26 AM
    • Marked as answer by George123345 Tuesday, February 17, 2015 2:46 AM
    Sunday, February 8, 2015 2:11 AM
  • Hi Jasmine Bingham,

    This forum is to discuss problems of Windows Forms. Your question is not related to the topic of this forum.

    You can consider posting it in Word forum for better supports. Thanks.

    https://social.technet.microsoft.com/Forums/office/en-US/home?forum=word

    Best regards,
    Youjun Tang


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, February 9, 2015 3:21 AM
  • Jasmine,

    If you want to get very specific, below is an advance Find/Replace option for you to try:

    Select both the "Use wildcards" and "Ignore white-space characters" boxes.

    Then type the following criteria for Find:

    ^32{5,}

    Type the following criteria for Replace:

    ^09

    The ^32 is a "space character" and ^09 represents a "tab character".

    Good luck!

    -Greg

    • Proposed as answer by George123345 Monday, February 16, 2015 6:26 AM
    • Marked as answer by George123345 Tuesday, February 17, 2015 2:46 AM
    Friday, February 13, 2015 4:32 PM