Removing item from combobox with vba

  • Thread starter Thread starter SOS
  • Start date Start date
S

SOS

Tom,

The comboboxes are populated during the UserForm_Initialize() event:

Private Sub UserForm_Initialize()
With comTeam1
.AddItem "Airdrie"
.AddItem "West Lothian"
End With - (many more teams in the real sheet)

With comTeam2
.AddItem "Airdrie"
.AddItem "West Lothian"
End With - (many more teams in the real sheet)
End Sub

So I felt that during the code I could use something like:

"comTeam2.RemoveItem comTeam1"

Thanks

Seamu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top