D
Dave Neve
Hi
I know that when I am in my table, I can initiate a search for a word and I
can ask 'Word' to underline all occurences of the word (options in search).
So, I have tried to record a macro to do the same to save me from having to
select the column and tick the right boxes every time (complete word,
underline all occurences)
But their are two things that have me stumped
Instead of having a particular word to search for in my macro (eg. 'mai') ,
I'd like the macro to fill itself in with the selected word.
The second thing is that the macro which was recorded by Word doesn't seem
to behave in the same way. It simply doesn't underline all occurences of the
word.
The macro is as follows and thanks for any help in advance
Dave Neve
Sub SearchThai()
'
' SearchThai Macro
' Macro enregistrée le 07/10/2004 par Dave Neve
'
Selection.SelectColumn
Selection.Find.ClearFormatting
With Selection.Find
.Text = "mai"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindAsk
.Format = False
.MatchCase = True
.MatchWholeWord = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
End Sub
I know that when I am in my table, I can initiate a search for a word and I
can ask 'Word' to underline all occurences of the word (options in search).
So, I have tried to record a macro to do the same to save me from having to
select the column and tick the right boxes every time (complete word,
underline all occurences)
But their are two things that have me stumped
Instead of having a particular word to search for in my macro (eg. 'mai') ,
I'd like the macro to fill itself in with the selected word.
The second thing is that the macro which was recorded by Word doesn't seem
to behave in the same way. It simply doesn't underline all occurences of the
word.
The macro is as follows and thanks for any help in advance
Dave Neve
Sub SearchThai()
'
' SearchThai Macro
' Macro enregistrée le 07/10/2004 par Dave Neve
'
Selection.SelectColumn
Selection.Find.ClearFormatting
With Selection.Find
.Text = "mai"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindAsk
.Format = False
.MatchCase = True
.MatchWholeWord = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
End Sub