The last line of your sub is moving the cursor to the end of the document so although you moved the cursor just before that, it sat there for only a millisecond before you asked it to move somewhere else.
Try deleting the Selection.endKey Unit:=wdStory line
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
|