ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Duplicate items in ComboBox (https://www.excelbanter.com/excel-programming/403678-duplicate-items-combobox.html)

Coco

Duplicate items in ComboBox
 
I am creating a userform with combo boxes. These boxes contain approximately
3 choices from which the user can select. When the information on the
userform is transferred to an excell spreadsheet and the userform is
re-initialized for another set of data to be entered, the selections in the
combobox are now duplicated, triplicated, etc. What do I need to do in my
code to prevent this?


Dave Peterson

Duplicate items in ComboBox
 
Maybe using a line like:

me.combobox1.clear

before adding more items to the list would work.

Coco wrote:

I am creating a userform with combo boxes. These boxes contain approximately
3 choices from which the user can select. When the information on the
userform is transferred to an excell spreadsheet and the userform is
re-initialized for another set of data to be entered, the selections in the
combobox are now duplicated, triplicated, etc. What do I need to do in my
code to prevent this?


--

Dave Peterson


All times are GMT +1. The time now is 05:21 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com