C
CompleteNewb
I'm just curious here, and thought I'd ask.
I've discovered that a lot of the italicized phrases in my VERY long Word
document have the WORDS in italics, but for some reason the spaces between
the words are NOT. So, when I run my macro to place all italicized phrases
inside html tags, I get every word enclosed in the tags instead of the
entire sentence/phrase.
Is there any way to:
1) Fix the non-formatted SPACES between words that are italicized in Word
before running the macro OR
2) Fixing it within the code of the macro.
Here's what I have for the bracket thing:
Set MyRange = ActiveDocument.Content
With MyRange.Find
.ClearFormatting
.Font.Italic = True
.Replacement.ClearFormatting
.Text = ""
.Replacement.Text = "<em>^&</em>]"
.Format = True
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
.Execute Replace:=wdReplaceAll
.ClearFormatting
End With
Thanks for any ideas or comments on this, and for taking the time
I've discovered that a lot of the italicized phrases in my VERY long Word
document have the WORDS in italics, but for some reason the spaces between
the words are NOT. So, when I run my macro to place all italicized phrases
inside html tags, I get every word enclosed in the tags instead of the
entire sentence/phrase.
Is there any way to:
1) Fix the non-formatted SPACES between words that are italicized in Word
before running the macro OR
2) Fixing it within the code of the macro.
Here's what I have for the bracket thing:
Set MyRange = ActiveDocument.Content
With MyRange.Find
.ClearFormatting
.Font.Italic = True
.Replacement.ClearFormatting
.Text = ""
.Replacement.Text = "<em>^&</em>]"
.Format = True
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
.Execute Replace:=wdReplaceAll
.ClearFormatting
End With
Thanks for any ideas or comments on this, and for taking the time