Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi all. I have the following inside a worksheet change event:
'Lock/Unlock cells based on FT/PT status If .Column = 5 And .Row 11 And .Row < 312 Then Application.EnableEvents = False If .Value = "PT" Then Cells(.Row, 6).Value = 20 Else Cells(.Row, 6).Value = 40 End If Application.EnableEvents = True End If I the user highlights and clears contents of column 5 and 6 at the same time (ie E5:F5), I get a type mismatch error on the line If .Value = "PT" Then, and the change event won't fire unless I completely clode out of excel and re-open. Any ideas on how to prevent that from happening? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Worksheet Change Event Problem | Excel Programming | |||
Worksheet Row Change event | Excel Discussion (Misc queries) | |||
Worksheet Change event | Excel Programming | |||
Change Cell from Validated List Not Firing Worksheet Change Event | Excel Programming |