Ajouve
Ajouve

Reputation: 10049

Event on list: find item clicked access vba

I have a list and I trigger a function on list element click. Is there a solution to know which element has been clicked in my vba sub ?

Upvotes: 0

Views: 334

Answers (1)

parakmiakos
parakmiakos

Reputation: 3020

You can use <listname>.Listindex if you have a single-select list : Listindex

If you have a multi-select list, use <listname>.ItemSelected and iterate over the set : ItemSelected

Upvotes: 2

Related Questions