Results 1 to 2 of 2

Thread: [Word]How to find the end of a document.

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2008
    Posts
    1

    [Word]How to find the end of a document.

    I am looking to have a parsing program stop when it hits the end of the doc.

    As it is right now ist just starts from the beginning again.
    something like


    if Selection = <end of doc> code then

    get out here

    end if

  2. #2
    Fanatic Member dmaruca's Avatar
    Join Date
    May 2006
    Location
    Jacksonville, FL
    Posts
    577

    Re: [Word]How to find the end of a document.

    I'm curious to see your code that starts over again.

    Code:
    If Selection.End = ActiveDocument.Range.End Then Exit Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width