I am trying to select text inside a Word-document using COM. The problem that I encountered is that I don't know how many lines to select, so something like
Code: Select all
oWord.Selection.MoveDown(5, 3, 9)
Question two: I am trying to find a word in Word (with COM) and putting it into a variable.
Using
Code: Select all
oWord.Selection.Find.Execute("My word")
Help appreicated.