Hello,
I need to create a macro that would select the first three pages of a 10-page document. I tried using the selection method, but all of them are selecting the entire document.
Can this be done?
Thanks\
I need to create a macro that would select the first three pages of a 10-page document. I tried using the selection method, but all of them are selecting the entire document.
Can this be done?
Thanks\
VBA Code:
...
ActiveDocument.Paragraphs(1).Range.Select
Selection.HomeKey Unit:=wdLine, Extend:=wdExtend
Selection.Range.HighlightColorIndex = wdYellow