Hi John,
Thank you. It's very close to my requirement. I have made a little amendment in it to clear 2 columns to the right if the user edit State.
Requirement:
If the user edit State clear 2 columns to right. That is District and Block.
If the user edit District then clear 1 column to left and 1 column to right. That is State and Block.
If the user edit block then clear 2 columns to left. That is State and District.
In short I want to select the drop down list from column 'J' to 'L' direction only. User can not edit the drop down list from District or Block.
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
On Error Resume Next
If Target.Column = 10 Or Target.Column = 11 Then
If Target.Validation.Type = 3 Then
Application.EnableEvents = False
Target.Offset(0, 2).ClearContents
End If
End If
exitHandler:
Application.EnableEvents = True
Exit Sub
End Sub
Please tell me what is the meaning of
.Validation.Type = 3 Then
Thank you.
Bookmarks