Trying to make AHK select a range of text in page # 1. Starting from line 7. Problem is that I never know how many lines the first page will contain, so I can't tell it to move to a certain line. I need it to basically goto the end of the lastline, and then selection.moveup to row 7.
SetTitleMatchmode, 2
oWord := ComObjActive("Word.Application")
WinActivate, - Word
oWord.Visible := true
oWord.Selection.GoTo(1, 2) ; 1 = GotoPage, 2 = Go to page #
This is getting me to the beginning of page 1. I've tried different things but nothing seems to work as I want. Any ideas?