In VBA (in Excel), differentiating between a listbox changing programatically vs. on click
问题 I have two multi select listboxes in a userform in VBA in Excel. One contains countries, the other contains cities. If the user clicks and selects/deselects a country, I would like my script to automatically select/deselect all of the cities located in that country in the second listbox. Equally, I would like that if the user clicks and selects/deselects a city, it automatically updates the first listbox to highlight only countries for which all of their corresponding cities are currently