F
Fuzzhead
I have converted a document from WordPerfect to word and now I am attaching
the correct Heading to the step. The following is an example of what I have.
There is a tab between {LISTUNM 37 \l 2} and Do not exceed...
{LISTUNM 37 \l 2} Do not exceed a steady state running… .
Here is my macro:
SearchRange.TextRetrievalMode.IncludeFieldCodes = True
With SearchRange.Find
.ClearFormatting
.Replacement.ClearFormatting
.Text = "^dLISTNUM 37 \l 2"
.Replacement.Text = ""
.Replacement.Style = ActiveDocument.Styles("Heading 2")
.Forward = True
.Format = True
.Execute Replace:=wdReplaceAll
.Replacement.ClearFormatting
.Format = False
.Execute Replace:=wdReplaceAll
End With
What I end up with is 2 tabs between my heading number and the text. I have
tried several different ways to delete the tab after {LISTUNM 37 \l 2} with
no success. How do I delete that tab before I put in my Heading 2?
the correct Heading to the step. The following is an example of what I have.
There is a tab between {LISTUNM 37 \l 2} and Do not exceed...
{LISTUNM 37 \l 2} Do not exceed a steady state running… .
Here is my macro:
SearchRange.TextRetrievalMode.IncludeFieldCodes = True
With SearchRange.Find
.ClearFormatting
.Replacement.ClearFormatting
.Text = "^dLISTNUM 37 \l 2"
.Replacement.Text = ""
.Replacement.Style = ActiveDocument.Styles("Heading 2")
.Forward = True
.Format = True
.Execute Replace:=wdReplaceAll
.Replacement.ClearFormatting
.Format = False
.Execute Replace:=wdReplaceAll
End With
What I end up with is 2 tabs between my heading number and the text. I have
tried several different ways to delete the tab after {LISTUNM 37 \l 2} with
no success. How do I delete that tab before I put in my Heading 2?