I have a listbox that is populated via rows on a worksheet. Currently it's set up to allow multiple selections. Once the user has made their selections I want to loop through the listbox and for each .selected = true I write something on the coresponding row of the worksheet.
I have the bulk of this done with one issue remaining. When I hit the first .selected I write successfully to the sheet but it then is clearing my remaining listbox selections if any. I'd like the selections to remain selected until after I complete the loop. Any Ideas?
Currently working around it with an additional loop that is being populated with the indexs of selected items then looping again to write to the worksheet. I'd prefer to bring the three loops down to one.
[small]Sometimes you gotta leave your zone of safety. You have to manufacture Inspirado. You gotta get out of the apartment. You've got to run with the wolves. You've got to dive into the ocean and fight with the sharks. Or just treat yourself to a delicious hot fudge sundae........ with nuts. - Jack Black[/small]
I have the bulk of this done with one issue remaining. When I hit the first .selected I write successfully to the sheet but it then is clearing my remaining listbox selections if any. I'd like the selections to remain selected until after I complete the loop. Any Ideas?
Currently working around it with an additional loop that is being populated with the indexs of selected items then looping again to write to the worksheet. I'd prefer to bring the three loops down to one.
[small]Sometimes you gotta leave your zone of safety. You have to manufacture Inspirado. You gotta get out of the apartment. You've got to run with the wolves. You've got to dive into the ocean and fight with the sharks. Or just treat yourself to a delicious hot fudge sundae........ with nuts. - Jack Black[/small]