Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello to all
When the user CHANGES an entry in range A5:F64, I'd like a msgbox to ask for confirmation, or else undo the change. So far I can tell if the change is in the desired range (see below), but I have no clue as to how to undo the changes if not confirmed by the user. Any ideas would be appreciated. Thanks, Brian Private Sub Worksheet_Change(ByVal Target As Range) Dim WatchRange As Range Dim ChangedRange As Range Set WatchRange = Range("A5:F64") Set ChangedRange = Intersect(Target, WatchRange) If ChangedRange Is Nothing Then MsgBox "You changed a cell NOT in the WatchRange", vbOKOnly Else MsgBox "You changed a cell in the WatchRange", vbOKOnly End If End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
UNDO - not available | Excel Discussion (Misc queries) | |||
Charts forget range or data; fixed by manual alteration then Undo | Charts and Charting in Excel | |||
UNDO - how many times can I UNDO? | Excel Worksheet Functions | |||
Why is my undo function in Excel only can undo the last 1 or 2 ch. | Excel Worksheet Functions | |||
Undo Please? | Excel Programming |