+ Reply to Thread
Results 1 to 2 of 2

accessing Undo on worksheet change event

  1. #1
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    accessing Undo on worksheet change event

    Does anyone no how to undo a worksheet change automatically? I would like to capture the value that Target had before it was changed, and if the user chooses, undo the change they have made.

    (generic example below)

    Please Login or Register  to view this content.
    Last edited by GeneralDisarray; 01-16-2013 at 08:48 PM.
    Remember, saying thanks only takes a second or two. Click the star icon(*) below the post you liked, to give some Rep if you think an answer deserves it.

    Please,mark your thread [SOLVED] if you received your answer.

  2. #2
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: accessing Undo on worksheet change event

    Also, I tried application.undo... but that causes the worksheet change to fire again! get stuck in a loop


    Edit-----
    TO AVOID THE LOOP. USE THIS:

    Application.EnableEvents = False
    Application.Undo
    Application.EnableEvents = True

    Turns off the event macro for the one time... duh!
    Last edited by GeneralDisarray; 01-16-2013 at 08:47 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1