Hi All,
I have the below macro which I have recorded for importing the data from SQL Server table. I have a userform in which I have list box I am populating that listbox with some values from another sql server table. Now what I am doing is, while importing the data from sql table I select a criteria now I want the user to select multiple items in listbox and my below macro should consider that selection and extract the data accordingly. As of now below mentioned code works fine with single selection in listbox but when I select multiple items in my listbox. It shows error. Please help.
Currently my listbox's MultiSelect property is set to 0. If I set it to 1 or 2 the above macro doesn't work.
Please have a look at the attached screenshot. This will help you to understand my issue in better way.
Thanks for your help in advance.
Bookmarks