Ark68
Well-known Member
- Joined
- Mar 23, 2004
- Messages
- 4,632
- Office Version
- 365
- 2016
- Platform
- Windows
I am having difficulty in getting my worksheet_selection change code to work.
In my example, cell W12 has a list validation. When I make a selection from the list, I need some code to run, so I expected that a worksheet_selection code procedure would work.
In my example, cell W12 has a list validation. When I make a selection from the list, I need some code to run, so I expected that a worksheet_selection code procedure would work.
Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Stop
If Not mbevents Then Exit Sub
tmrow = Target.Row 'trow = Target.Row
tmcol = Target.Column 'tcol = Target.Column
If tmcol < 13 Or tmcol > 16 Then
If Target.Value = "" Then Exit Sub
End If
mbevents = False
. . . more code
end sub