Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-12-2017, 04:22 PM
DRD992 DRD992 is offline Problem Coding End of Page Windows 7 64bit Problem Coding End of Page Office 2013
Novice
Problem Coding End of Page
 
Join Date: Jan 2016
Posts: 11
DRD992 is on a distinguished road
Default Problem Coding End of Page

Everyone,



I'm having trouble writing a macro that will automatically position the text ("Continued...") on the very last line of page. My problem is coding the variable distance between the preceding text and "Continued." I don't have trouble coding the letters or words, only reliably positioning.

I prefer to avoid page breaks and footers because they waste too much space at the bottom of a page.

When I try to create a looping carriage return, to position the cursor on the last line of a page, I invariably create an infinite loop.

I've unsuccessfully tried creating code that would calculate the number of lines needed to move "Continued..." from a higher position on the page to the last line.

Any suggestions? Thank you
Reply With Quote
  #2  
Old 10-12-2017, 05:15 PM
macropod's Avatar
macropod macropod is offline Problem Coding End of Page Windows 7 64bit Problem Coding End of Page Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

What you're trying to achieve, though possible, isn't practical. As soon as you open the document on another computer (especially one with an earlier Word version) or even on the same computer and change the active printer, the layout is liable to change and you could find your ("Continued...") line moving up, so it's no longer the last line, or even moving to the top of the next page.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem Coding End of Page Starting page layout problem in Word 2010 - top of page cut off paik1002 Word 2 01-21-2016 03:59 AM
Problem Coding End of Page If else statement-Need help with coding rsrasc Excel Programming 4 10-30-2015 01:10 AM
UserForm VBA coding Niclasfa Word VBA 1 04-08-2015 10:23 PM
What kind of coding? ep2002 Excel 3 07-22-2014 07:52 AM
2 page document printing problem, text from page 1 in layout of page 2 when printed laurawether45 Word 1 08-02-2012 07:03 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:20 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft