In Word, how to check whether the current cursor position is at the end of the document.

Basically, using a loop, I am traversing all the characters of the document with .Selection.MoveRight method. I want to exit the loop when the .Selection is at the end of the document.

Pls guide