Move Text to the end of the Page or Document

D

Drake

Hi. Does anyone have any ideas for how to move selected text to the end of
the same page that it is already on? I have tried end of story, but it
already is the end of story (i.e. there are no paragraph marks after it,
although there is paper space).

Hope this makes sense. Thanks!
 
J

Jean-Guy Marcil

Bonjour,

Dans son message, < Drake > écrivait :
In this message, < Drake > wrote:

|| Hi. Does anyone have any ideas for how to move selected text to the end
of
|| the same page that it is already on? I have tried end of story, but it
|| already is the end of story (i.e. there are no paragraph marks after it,
|| although there is paper space).
||

Could you use a conditional footer for that?

If not, there is no easy way to do that through VBA because the space
occupied by the text already present is a variable that can be very
complicated to obtain (Font size, Line height, Space before and after,
etc.). You might add lines until you get to the bottom (number of lines
depending on amount of text already on the page), use "Space before" to
space the line from the rest of the page (but the space needed would change
depending on the page content), use a frame, or a textbox.

What are you trying to do? There might be a better way of achieving the same
result...
--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 
D

Drake

Bonjour Jean-Guy,

thanks for the response. What I have is a document of variable length that
has a signature line at the end of it. I am automating everything in the
document depending on how a user answers questions in a userform. What I
would like is, after the document fininshes populating (depending on the
user's answers), for the signature line to be moved to the end of the page
that it is on.

Hope this makes sense.
 
J

Jean-Guy Marcil

Bonjour,

Dans son message, < Drake > écrivait :
In this message, < Drake > wrote:

|| Bonjour Jean-Guy,
||
|| thanks for the response. What I have is a document of variable length
that
|| has a signature line at the end of it. I am automating everything in the
|| document depending on how a user answers questions in a userform. What I
|| would like is, after the document fininshes populating (depending on the
|| user's answers), for the signature line to be moved to the end of the
page
|| that it is on.
||

Try this:

Prepare an autotext for the signature (a textbox placed on the page using
absolute page coordinates would be best), then, in your macro, at the end,
go to the end of the document and use Selection.Information to get the
cursor vertical position on the page, doing some maths you will know if you
have enough space to add the autotext or not. If not, add a new page with
some text with the autotext at then end.

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top