L
Lisa
Hello,
I would like to look for a specific type of formatting , e.g. "my_style" +
underlined, in a word doc and would like to highlight it in light grey in
addition.
I tried the following but I am a bit stuck, so any help would be much
appreciated:
With rngTemp.Find
.Text = ""
.Forward = True
.Wrap = wdFindStop
.Format = True
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
.Style = "my_style"
****
at this point, how to add the request that the word should be undelined?
****
While .Execute
Selection.Range.HighlightColorIndex = wdGray25
rngTemp.Collapse wdCollapseEnd
Wend
*****
this was my (weak!) attempt to select the word and highlight it accordingly
but this definitely does not work...
****
End With
Many Thanks in advance and happy new year in advance,
Lisa
I would like to look for a specific type of formatting , e.g. "my_style" +
underlined, in a word doc and would like to highlight it in light grey in
addition.
I tried the following but I am a bit stuck, so any help would be much
appreciated:
With rngTemp.Find
.Text = ""
.Forward = True
.Wrap = wdFindStop
.Format = True
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
.Style = "my_style"
****
at this point, how to add the request that the word should be undelined?
****
While .Execute
Selection.Range.HighlightColorIndex = wdGray25
rngTemp.Collapse wdCollapseEnd
Wend
*****
this was my (weak!) attempt to select the word and highlight it accordingly
but this definitely does not work...
****
End With
Many Thanks in advance and happy new year in advance,
Lisa