RE: Move cursor out of text box

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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

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


"quartz" wrote:

> 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.
.



Relevant Pages

  • Re: whats one of your secret vim maps?
    ... with the cursor in between, ... " clean up paste buffer before pasting ... Success for Techies ...
    (comp.editors)
  • Re: Ado Recordset updatable in Code but not via Form
    ... I already tried each CursorTypes without success ... but I can update the recordset without problem. ... CursorType to dynamic cursor is invalid. ... I'd see if suppressing the triggers allows the form to ...
    (microsoft.public.access.formscoding)
  • Re: GCC 4.0 Ada.Containers Cursor danger.
    ... No matter what value is returned for Success (BTW: ... C: Cursor; ...
    (comp.lang.ada)
  • GCC 4.0 Ada.Containers Cursor danger.
    ... Success: Boolean; ... Table.Delete (Container, Cursor2); ... Table.Replace_Element (Cursor, -22222); ... I'm writting in ADT but have to use code with AI302. ...
    (comp.lang.ada)
  • Please Help - Desperate 1394 Performance Problems
    ... have wasted hours already with absolutely no success. ... Microsoft Windows XP Professional Service Pack 2 ... cable and captured video without any frame dropping or other problems. ... Pinnacle Studio 9.4 and Pinnacle AM ...
    (rec.video.desktop)