+ Reply to Thread
Results 1 to 2 of 2

SheetChange event restore old value

  1. #1
    Anton Sommer
    Guest

    SheetChange event restore old value

    Hello folks,

    when the SheetChange event is thrown a cell got change in the grid, and that
    cell I can tell by the property of the target variable. Good, but is there a
    chance to restore the old value before the editing took place? (like pushing
    the red cross buton when entering somtehing manually).


    Thanks

    Anton



  2. #2
    Jim Thomlinson
    Guest

    RE: SheetChange event restore old value

    You can use application.undo something like this

    Private Sub Worksheet_Change(ByVal Target As Range)
    If LCase(Target.Value) = "this" Then Application.Undo
    End Sub

    If you type in the word this it undoes what was typed back to the previous
    value of the cell.
    --
    HTH...

    Jim Thomlinson


    "Anton Sommer" wrote:

    > Hello folks,
    >
    > when the SheetChange event is thrown a cell got change in the grid, and that
    > cell I can tell by the property of the target variable. Good, but is there a
    > chance to restore the old value before the editing took place? (like pushing
    > the red cross buton when entering somtehing manually).
    >
    >
    > Thanks
    >
    > Anton
    >
    >
    >


+ 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