Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Dim PrevVal
Sub EventsON()
Application.EnableEvents = True
End Sub
Sub EventsOFF()
Application.EnableEvents = False
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Count > 1 Then
PrevVal = ""
Exit Sub
Else
If Not Intersect(Target, [MyRange]) Is Nothing Then
If PrevVal <> "" Then
Target.Value = PrevVal
End If
End If
End If
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Count > 1 Then
PrevVal = ""
Exit Sub
Else
If Not Intersect(Target, [MyRange]) Is Nothing Then
PrevVal = Target.Value
End If
End If
End Sub