I
ivanov.ivaylo
Hi,
I want amend my macro that finds all instances of bold text in a
document and puts the text between <b> and </b>. This macro, however,
formats the tags themselves in bold. I want them in a non-bold (normal)
and blue typeface.
Thanks!
Here is the macro:
Sub BoldToTagged()
'
' BoldToTagged Macro
' Macro created 16.9.2005 by Ivaylo T Ivanov
' Finds all instances of bold text and puts the text between <b> and
</b> tags
'
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = ""
.Replacement.Text = "<b>^&</b>"
.Forward = True
.Wrap = wdFindContinue
.Format = True
.Font.Bold = True
End With
Selection.Find.Execute Replace:=wdReplaceAll
End Sub
I want amend my macro that finds all instances of bold text in a
document and puts the text between <b> and </b>. This macro, however,
formats the tags themselves in bold. I want them in a non-bold (normal)
and blue typeface.
Thanks!
Here is the macro:
Sub BoldToTagged()
'
' BoldToTagged Macro
' Macro created 16.9.2005 by Ivaylo T Ivanov
' Finds all instances of bold text and puts the text between <b> and
</b> tags
'
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = ""
.Replacement.Text = "<b>^&</b>"
.Forward = True
.Wrap = wdFindContinue
.Format = True
.Font.Bold = True
End With
Selection.Find.Execute Replace:=wdReplaceAll
End Sub