in reply to How To goto End of Word doc

$Word->Selection->EndKey( { Unit => 6 } ); # wdStory = 6 $Word->ActiveDocument->Close;
poj

Replies are listed 'Best First'.
Re^2: How To goto End of Word doc
by pryrt (Abbot) on Feb 02, 2017 at 14:59 UTC

    Here are some MSDN documentation links (assume Word ≥2013 unless noted) to the various objects and methods and enumerations mentioned in ++poj's post:

      Thank you for taking the time and trouble to provide such a bounty of useful information. And quickly, too! The replies people have given totally amaze me. I just joined up and didn't know if I'd get ANY responses. This has been great.
Re^2: How To goto End of Word doc
by fishpoem (Initiate) on Feb 02, 2017 at 17:44 UTC
    Thank you for responding so quickly! Quite amazing, actually. Really appreciate the code snippet. I'd tried EndKey previously, but hadn't formatted it properly. I'll try again.