Results 1 to 4 of 4
  1. #1
    2 Star Lounger
    Join Date
    Sep 2002
    Posts
    180
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Programmatically calling EditUndo (2000/2002/2003)

    Is there a way to programmatically call EditUndo? I see that you can override it, but I haven't found a way to actually execute it.

    Thanks...

    Dan

  2. #2
    2 Star Lounger
    Join Date
    Sep 2002
    Posts
    180
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Programmatically calling EditUndo (2000/2002/2003)

    I guess one way to do it is to find the control in the Edit menu whose caption begins with "Undo", and call the control.execute method. Is there any other way?

  3. #3
    3 Star Lounger
    Join Date
    Apr 2004
    Location
    Boston, Massachusetts, USA
    Posts
    389
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Programmatically calling EditUndo (2000/2002/2

    <pre>ActiveDocument.Undo</pre>


    There's an optional "Times" argument, as well.

  4. #4
    2 Star Lounger
    Join Date
    Sep 2002
    Posts
    180
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Programmatically calling EditUndo (2000/2002/2

    Thanks Andrew. BTW, I'm enjoying your book...Dan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •