Move cursor out of text box

Q

quartz

I am using Office 2003 on Windows XP.

I wrote some code that adds a text box to a page and formats it. This code
works fine, but when it's done, the cursor is left inside the text box. I
would like the cursor to finish at the beginning of the document. I tried to
record a macro, but the recorder doesn't pick up the mouse clicks. I also
tried the following without success:

ActiveDocument.HomeKey Unit:=wdStory

Can someone please post example code that will move the cursor out of a text
box and place it at the beginning of the current document? Thanks much in
advance.
 
Q

quartz

Please note: I was able to use the following successfully:

ActiveDocument.Range(Start:=0, End:=0).Select
 

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