Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Triggering Event

Status
Not open for further replies.

moswitch

Technical User
Feb 26, 2007
40
US
I have a private SelectionChange and Change sub routine in my VBA code which works well once initiated, the problem I have is that I am having a hard time triggering these events when clicking on the pull down arrow of a "Data Validation" List. Excel does not seem to recognize clicking a list as an event, how can I trigger an event when I click on a validation list?
 
If you have the validated cell selected and you change the value to a new item in the selection list, the SelectionChange event will not be triggered, because you have not changed the selection. However, that process will trigger the Change event.

Is that not what you need? What is the problem exactly?

Tony
 
hi,

Do you want to trigger the SelectionChange event or the Change event in the worksheet? BIG difference.

Using the Data > Validation - LIST feature with the in-cell drop down, You must FIRST select the DV cell. That will trigger the SelectionChange event, When you make a NEW selection, that will trigger the Change event.

Clicking the drop down, triggers no event, like a ComboBox.

If no other cell is ever selected, the SelectionChange event will never be able to be fired again. That DV cell remains selected thru many Change events as new values are selected from the drop down.

Exactly what is your problem?

Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
You both have answered my question, thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top