Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This should do what you want. HTH Otto
Private Sub Worksheet_Change(ByVal Target As Range) Dim OldValue As Variant Dim NewValue As Variant If Target.Count 1 Then Exit Sub NewValue = Target.Value Application.EnableEvents = False Application.Undo OldValue = Target.Value Target.Value = NewValue Application.EnableEvents = True If OldValue = "" Then 'Do your thing here End If End Sub "Sliman" wrote in message ... How can you limit change event to run only if changed cell was blank. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Calculation of cell value with worksheet change event | Excel Programming | |||
change event on specific cell rather than worksheet | Excel Discussion (Misc queries) | |||
Cell value change to trigger macro (worksheet change event?) | Excel Programming | |||
Change Cell from Validated List Not Firing Worksheet Change Event | Excel Programming |