Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Re : Excel Event Worksheet_Change Shuns
SpecialCells(xlCellTypeAllValidation) 1. Open an Excel worksheet and enter the following code of Worksheet_Change Event in the worksheet module :- Private Sub Worksheet_Change(ByVal Target As Range) MsgBox "SheetChange Event : Activated" V = Application.Intersect(Selection, Me.Cells.SpecialCells(xlCellTypeAllValidation)) MsgBox "SheetChange Event : follows SpecialCells(xlCellTypeAllValidation)" End Sub 2. Cells A1 and B1 contain Data Validation. 3. Upon deleting cell B2, the worksheet enters into the state of Worksheet_Change Event. 4. The message box displays "SheetChange Event : Activated" ; it shows that the Event is fired. 5. After the message box is clicked away, another message box is expected to display "SheetChange Event : follows SpecialCells(xlCellTypeAllValidation)" 6. However, multiple attempts to show the second message box appear in vain. 7. The code execution is apparently shying at the expression of SpecialCells(xlCellTypeAllValidation) and therefore it veers round the second message box as well subsequently. 8. There's not any run-time error message. 9. Please share your comments. Regards. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Worksheet_Change Event (Excel 2000 to 2003) | Excel Programming | |||
Worksheet_Change event doesn't work in Excel 97 | Excel Programming | |||
Worksheet_Change event doesn't work in Excel 97 | Excel Programming | |||
Worksheet_change event | Excel Programming | |||
specialcells and toolbox button click event | Excel Programming |