I have a word document with several words or paragraphs dispersed that are in italics. I need to find these Italics. How do I go about doing this? The following is my code which does not work:
Dim italicText As String
italicText = Selection.Font.Italic
With Selection.Find
.ClearFormatting
.Text = italicText
If .Execute = True Then
MessageBox.Show ("Text found.")
Else
MessageBox.Show ("The text could not be located.")
End If
End With
Thanks!
Dim italicText As String
italicText = Selection.Font.Italic
With Selection.Find
.ClearFormatting
.Text = italicText
If .Execute = True Then
MessageBox.Show ("Text found.")
Else
MessageBox.Show ("The text could not be located.")
End If
End With
Thanks!