Hi! I need help on selecting the complete content of a page (specified by page number), by using a macro in Word 2007.
Printable View
Hi! I need help on selecting the complete content of a page (specified by page number), by using a macro in Word 2007.
you can try like
vb Code:
mypage = 4 st = ActiveDocument.GoTo(wdGoToPage, 1, mypage).Start Selection.SetRange st, st + 1 en = ActiveDocument.GoTo(wdGoToPage, 1, mypage + 1).Start Selection.SetRange st, en