O
O.B.1.
Hello all!
Can anyone tell me how to replace a word in the document
with a table.
I've managed to find the word by using :
With objWord.ActiveWindow.Selection.Find
.ClearFormatting
.Text = "<TABLE1>"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = True
.MatchWholeWord = True
'.MatchWildcards = True
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
objWord.ActiveWindow.Selection.Find.Execute
but now, once I've located it, I want to draw a table, or
in fact just replace the text with a table.
Any help would be nice!! Thanks in advance!
Can anyone tell me how to replace a word in the document
with a table.
I've managed to find the word by using :
With objWord.ActiveWindow.Selection.Find
.ClearFormatting
.Text = "<TABLE1>"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = True
.MatchWholeWord = True
'.MatchWildcards = True
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
objWord.ActiveWindow.Selection.Find.Execute
but now, once I've located it, I want to draw a table, or
in fact just replace the text with a table.
Any help would be nice!! Thanks in advance!