Help! I am writing a series of tables from Access to a Word Template. To
avoid breaking the table over a page, I would like to calculate whether or
not a table can start on the current page or move to a new page.. It would
go something like:
If current line number < (total lines on page - 15), insert page break

How can I tell the code what line is being processed?

Re: Using VBA how do I return a line number on a page by Jezebel

Jezebel
Sun Sep 03 22:04:41 CDT 2006

selection.Information(wdFirstCharacterLineNumber)



"MPRWorks" <MPRWorks@discussions.microsoft.com> wrote in message
news:F8BD8313-C6AA-4B5D-BD4E-7BAEB98FAF21@microsoft.com...
> Help! I am writing a series of tables from Access to a Word Template. To
> avoid breaking the table over a page, I would like to calculate whether or
> not a table can start on the current page or move to a new page.. It
> would
> go something like:
> If current line number < (total lines on page - 15), insert page break
>
> How can I tell the code what line is being processed?



Re: Using VBA how do I return a line number on a page by MPRWorks

MPRWorks
Mon Sep 04 20:34:01 CDT 2006

Thank you for the quick response. It is just what I needed.

"Jezebel" wrote:

> selection.Information(wdFirstCharacterLineNumber)
>
>
>
> "MPRWorks" <MPRWorks@discussions.microsoft.com> wrote in message
> news:F8BD8313-C6AA-4B5D-BD4E-7BAEB98FAF21@microsoft.com...
> > Help! I am writing a series of tables from Access to a Word Template. To
> > avoid breaking the table over a page, I would like to calculate whether or
> > not a table can start on the current page or move to a new page.. It
> > would
> > go something like:
> > If current line number < (total lines on page - 15), insert page break
> >
> > How can I tell the code what line is being processed?
>
>
>