M
MichaelB
Hello,
Can someone help me automate the below Marco? I have a 535 page document
with over 1,100 “Justification:†paragraph entries within and I need to
reformat them all. Note: this document spans multiple WORD versions and
authors therefore these “Justification:†paragraph entries have several
styles associated throughout the document. This therefore eliminates the
option of just modifying the existing styles. It is my hope to reformat these
entries to the Paragraph 1 style throughout the document via a macro to save
my sanity.
Here is an example of one of my “Justification:†entries;
Justification: Users need the ability to view all pertinent data for the
subscriptions listed in this report.
Is it possible to get the macro to find all occurrences of the
“Justification:â€, select the entire paragraph, clear the formatting,
implement the Paragraph 1 style, as well as BOLD the text up to the colon
)?
Any help would be greatly appreciated.
Mike
Sub fix_Paragraph1_Font_Bold()
'
Selection.ClearFormatting
Selection.ClearFormatting
Selection.Style = ActiveDocument.Styles("Paragraph 1")
Selection.HomeKey Unit:=wdLine
Selection.Find.ClearFormatting
With Selection.Find
.Text = "*:"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchAllWordForms = False
.MatchSoundsLike = False
.MatchWildcards = True
End With
Selection.Find.Execute
Selection.Font.Bold = wdToggle
Selection.HomeKey Unit:=wdLine
End Sub
Can someone help me automate the below Marco? I have a 535 page document
with over 1,100 “Justification:†paragraph entries within and I need to
reformat them all. Note: this document spans multiple WORD versions and
authors therefore these “Justification:†paragraph entries have several
styles associated throughout the document. This therefore eliminates the
option of just modifying the existing styles. It is my hope to reformat these
entries to the Paragraph 1 style throughout the document via a macro to save
my sanity.
Here is an example of one of my “Justification:†entries;
Justification: Users need the ability to view all pertinent data for the
subscriptions listed in this report.
Is it possible to get the macro to find all occurrences of the
“Justification:â€, select the entire paragraph, clear the formatting,
implement the Paragraph 1 style, as well as BOLD the text up to the colon
Any help would be greatly appreciated.
Mike
Sub fix_Paragraph1_Font_Bold()
'
Selection.ClearFormatting
Selection.ClearFormatting
Selection.Style = ActiveDocument.Styles("Paragraph 1")
Selection.HomeKey Unit:=wdLine
Selection.Find.ClearFormatting
With Selection.Find
.Text = "*:"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchAllWordForms = False
.MatchSoundsLike = False
.MatchWildcards = True
End With
Selection.Find.Execute
Selection.Font.Bold = wdToggle
Selection.HomeKey Unit:=wdLine
End Sub