Return from form to specific line

P

PaddyOz

Hi All,
How do I make sure that when I close a form the cursor is ready and waiting
at either the end of the document or on a specific line number.
Thanks in Advance
 
H

Helmut Weber

Hi,

do you mean something like that:

Private Sub UserForm_Terminate()
Selection.EndKey Unit:=wdStory
End Sub

Greetings from Bavaria, Germany
Helmut Weber, MVP WordVBA
"red.sys" & chr(64) & "t-online.de"
Word 2002, Windows 2000
 

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