ListBox_Click() Event

mikeymay

Well-known Member
Joined
Jan 17, 2006
Messages
1,624
Office Version
  1. 365
Platform
  1. Windows
I am trying to implement a detection of a listbox item being clicked, either to select or unselect.

In previous projects I have used the _Click() event which has work exactly as I have needed it but this doesn't seem to work when implementing in this new project.

I have reviewed the project in which this was implemented and in that project the code executes as required, an item in the ListBox is clicked and the event fires.

From what I can see, it is suggested that the _Change event is used but this fires when the ListBox is being changed (either being populated with the RowSource and/or items being removed when I use a control to move the selected items to another ListBox) which I don't need to happen. I appreciate I can add some code to exit the event when it isn't needed but the _Click event worked perfectly well before......

Has there been a change in the VBE in the last 18 months to stop the _Click event working?


TIA
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
After a bit more digging it seems that is a ListBox's MultiSelect option is set to Multi, the _Click evet doesn't trigger.......how that makes sense I don't know.

Time for more unecessary code to be added......
 
Upvote 0
Solution

Forum statistics

Threads
1,221,310
Messages
6,159,173
Members
451,543
Latest member
cesymcox

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top