
Tips.Net > WordTips Home > Formatting > Tabs and Tab Stops > Removing Tabs Used to Indent a Paragraph
Summary: Someone sends you a document, and it has a lot of tabs in it that are used to indent paragraphs. This tip explains how you can get rid of those tabs as a first step in cleaning up the text. (This tip works with Microsoft Word 97, Word 2000, Word 2002, and Word 2003.)
If you frequently convert documents from a different word processor to Word, there is a good chance you must remove tabs inserted at the beginning of paragraphs. Some word processors require tabs in order to indent the first line of a paragraph; Word does not.
About the only way to remove the unnecessary tabs is to go to the beginning of each of the paragraphs and press the Del key. You could, however, use the Replace option from the Edit menu in order to search for tabs and remove them. (Actually, you would search for a paragraph mark followed by a tab; this would then be replaced with a paragraph, thereby deleting the tab.)
A quicker way to take care of this problem is to develop a macro to do it for you. The following macro, TabsOut, searches for any hard return/tab combinations in your document (or your selected text) and removes the tab.
Sub TabsOut()
If Selection.Type <> wdNoSelection Then
Selection.HomeKey Unit:=wdStory, Extend:=wdMove
End If
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "^p^t"
.Replacement.Text = "^p^
.Forward = True
.Wrap = wdFindContinue
.Format = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
End Sub
Tip #1174 applies to Microsoft Word versions: 97 2000 2002 2003
More Power! For some people, the prospect of creating Word macros can be scary. WordTips: The Macros can help you conquer your fears and you'll discover you're much more confident and productive as you make Word do exactly what you want. This is an invaluable source for learning macros. You are introduced to the topic in bite-sized chunks, pulled from past issues of WordTips. Learn at your own pace, exactly the way you want.
Check out WordTips: The Macros today!
Thousands of WordTips, available for immediate download. Have all the Microsoft Word info you need, right at your fingertips. (more information...)
Ask a Word Question
Make a Comment
Beauty Tips
Bugs and Pests Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Money Tips
Organizing Tips
Pet Tips
Word2007 Tips
WordTips