Microsoft Office / VBA IsLastPage Function in Word VBA Here’s a handy little function that tells you if the end of a Range in Word VBA lies on the last page of the document.