Need to know how to un-select a textbox and return to top of page

R

R.C.

Hello,

I have a document with several textboxes near the top. I'm using a macro to
insert text into them. After I have added my text to the last one, I need to
un-select the textbox and return the cursor back to the top left (home?) of
the document so I can move down the page to start inserting more text (NOT
in another textbox, just on the page). I can't figure out how to do this
with VBA code. Normally I can just click the mouse cursor back at the top of
the doc after typing in the last textbox, but obviously this can't be done
while recording the macro.

Can anyone help? Thanks. (Using Word 2002)
 
D

Doug Robbins - Word MVP

Selection.HomeKey wdStory

or insert a bookmark in the template at the location where you want the
cursor to end up and use

ActiveDocument.Bookmarks("bookmarkname").Range.Select

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
R

R.C.

Doug -

Both options will work for me. Thanks.

Doug Robbins - Word MVP said:
Selection.HomeKey wdStory

or insert a bookmark in the template at the location where you want the
cursor to end up and use

ActiveDocument.Bookmarks("bookmarkname").Range.Select

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 

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