Created
October 30, 2014 21:37
-
-
Save stevecooperorg/b6ec8c623a85e74cf301 to your computer and use it in GitHub Desktop.
ReplaceTabsWithParagraphs VBA macro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub ReplaceTabsWithParagraphs() | |
Selection.Find.ClearFormatting | |
Selection.Find.Replacement.ClearFormatting | |
With Selection.Find | |
.Text = "^t" | |
.Replacement.Text = "^v" | |
.Forward = True | |
.Wrap = wdFindContinue | |
.Format = False | |
.MatchCase = False | |
.MatchWholeWord = False | |
.MatchByte = False | |
.MatchAllWordForms = False | |
.MatchSoundsLike = False | |
.MatchWildcards = False | |
.MatchFuzzy = False | |
End With | |
While Selection.Find.Execute | |
Selection.TypeParagraph | |
Wend | |
Rem Replace:=wdReplaceAll | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment