LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 92
Default Re : Excel Event Worksheet_Change Shuns SpecialCells(xlCellTypeAllValidation)

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Worksheet_Change Event (Excel 2000 to 2003) No Name Excel Programming 3 May 4th 05 02:56 PM
Worksheet_Change event doesn't work in Excel 97 kysiow Excel Programming 1 June 10th 04 11:32 AM
Worksheet_Change event doesn't work in Excel 97 kysiow Excel Programming 0 June 10th 04 09:41 AM
Worksheet_change event Dwayne Smith Excel Programming 2 June 5th 04 03:25 AM
specialcells and toolbox button click event Srinath Excel Programming 2 August 13th 03 06:43 PM


All times are GMT +1. The time now is 05:29 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"