Microsoft KB Archive/212311

= WD2000: How to Convert Multiple White Spaces or Tabs =

Article ID: 212311

Article Last Modified on 12/6/2000

-

APPLIES TO


 * Microsoft Word 2000 Standard Edition

-



This article was previously published under Q212311





SUMMARY
This article describes how to change multiple spaces or tabs in a Word document to a single instance of a tab or other white space character.

You may want to perform this type of replacement in order to take advantage of some of the formatting commands in Word.



MORE INFORMATION
Some text or word processor files use multiple spaces or tabs to create tables. In Word, this type of formatting makes alignment and other types of formatting impossible.

To convert multiple instances of white space characters, such as spaces or tab characters, to a single instance of the character, use the following advanced criteria in the Find What box in the Find and Replace dialog box.

x{y,}

where x is the character you are searching for, such as a space, and y is the minimum number of instances that the character must appear in order to be replaced.

The following procedure replaces all occurrences of two or more spaces with a single tab character.

For example, if the text appears as

Filet Mignon    $21.95

it is converted to

Filet Mignon $21.95

by following these steps:

 On the Edit menu, click Replace.

 In the Find What box, type

 {2,}

where is the character produced when you press the SPACEBAR once.

NOTE: There is no space between the comma and the closing brace (}). In the Replace With box, type

^t

NOTE: The ^ is the caret symbol and is inserted by pressing SHIFT+6. Click More, and then click to select the Use Wildcards check box. Click Replace All.

<div class="references_section">