Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / September 2006

Tip: Looking for answers? Try searching our database.

Using VBA how do I return a line number on a page

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MPRWorks - 04 Sep 2006 02:34 GMT
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?
Jezebel - 04 Sep 2006 04:04 GMT
selection.Information(wdFirstCharacterLineNumber)

> 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
[quoted text clipped - 4 lines]
>
> How can I tell the code what line is being processed?
MPRWorks - 05 Sep 2006 02:34 GMT
Thank you for the quick response.  It is just what I needed.

> selection.Information(wdFirstCharacterLineNumber)
>
[quoted text clipped - 6 lines]
> >
> > How can I tell the code what line is being processed?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.