Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have the following code:
Private Sub Worksheet_Change(ByVal Target As Range) If Target.Address = "$F$83" And Target.Value = 1 And Target.Value <= 4 Then ' do something Else Application.Undo End If End Sub To start with, lets say F83 has 3. Now my problem is, if I enter say 5 in F83, then the above code is triggered, and through the Else, Application Undo is triggered, and 3 is entered again in F83. But this again triggers the changes event. My question: Can this second trigger be avoided somehow? I don't want to use the Data Validation, as the above thing is just a small part of what I am trying to do. -- - Mangesh ------------------------------------------ Office XP & Windows XP |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Why is my undo function in Excel only can undo the last 1 or 2 ch. | Excel Worksheet Functions | |||
Application.Undo Problem | Excel Programming | |||
Worksheet_Change & Undo | Excel Programming | |||
worksheet_change vs. calculate, and worksheet_change not running | Excel Programming | |||
worksheet_change vs. calculate, and worksheet_change not running | Excel Programming |