• Page Position (Word 2002)

    Author
    Topic
    #410285

    Is there a way to retrieve the position of the insertion point on the page–in inches, points or twips from the top of the page? I am automating Word from another program and will be inserting an Excel Spreadsheet range to a bookmark. I have this accomplished, except that if the range is too long to fit on what left of the page, I need to split the range. Therefore, I am looking for a way to determine the vertical location (relative or exact) of the insertion point (or of a bookmark, for that matter). I would be grateful for any comments.

    Viewing 1 reply thread
    Author
    Replies
    • #880667

      The Range and Selection objects have a property Information that can be used to retrieve all kinds of information about the range/selection. In particular, you can get the vertical position relative to the page:

      Selection.Information(wdVerticalPositionRelativeToPage)

      and to the text boundary:

      Selection.Information(wdVerticalPositionRelativeToTextBoundary)

      Both return a result in points.

      • #880694

        Hans, you usually have the information I need. Thanks again. bow

    • #880668

      The Range and Selection objects have a property Information that can be used to retrieve all kinds of information about the range/selection. In particular, you can get the vertical position relative to the page:

      Selection.Information(wdVerticalPositionRelativeToPage)

      and to the text boundary:

      Selection.Information(wdVerticalPositionRelativeToTextBoundary)

      Both return a result in points.

    Viewing 1 reply thread
    Reply To: Page Position (Word 2002)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: