I have a workbook with a rather complicated series of user forms. One of the forms consists of a list box with an associated click event that fires randomly (or for reasons i do not understand). I have tirelessly stepped through the code to verify that the list box is *not* being "clicked" or altered programmatically when it is firing.
The list box click event tends to fire when a range on a worksheet is calculated. Additionally, it fires 20+ times upon the user form initialization event. I set the contents of the list box via row source and even if there are only a few items added upon initialization the list box click event still fires 20+ times.
Is anyone familiar with this problem.. are there some coding best practices I am overlooking? The code is too circuitous to post; however, I am an experienced VBA programmer and have ruled out any obvious issues (such as nested events that are calling each other back and forth)
Any suggestions would be appreciated.
The list box click event tends to fire when a range on a worksheet is calculated. Additionally, it fires 20+ times upon the user form initialization event. I set the contents of the list box via row source and even if there are only a few items added upon initialization the list box click event still fires 20+ times.
Is anyone familiar with this problem.. are there some coding best practices I am overlooking? The code is too circuitous to post; however, I am an experienced VBA programmer and have ruled out any obvious issues (such as nested events that are calling each other back and forth)
Any suggestions would be appreciated.