Results 1 to 2 of 2
  1. #1
    5 Star Lounger
    Join Date
    Mar 2001
    Thanked 0 Times in 0 Posts

    Undoing text entry (Word 2003)

    I've designed a UserForm with a text box for a date to be entered. Trying to use the AfterUpdate event of the text box to check for a valid date. If a correct date is not entered, how can I 'Undo' what's been typed? Thanks, Andy.

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Thanked 31 Times in 31 Posts

    Re: Undoing text entry (Word 2003)

    I'd use the Before Update event. This has a Cancel argument, if you set it to True, the user cannot leave the text box.
    If you really want to undo, you'd have to store the previous value in a variable, but that's a lot of extra work.

Posting Permissions

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