I want to set a value to flgElim 0 or 1 depends on which item is selected in the combo box, cmbElim
VB Code:
Option Explicit Public flgElim As Boolean Private Sub cmbElim_Change() If cmbElim.ListIndex = "0" Then flgElim = "0" ElseIf cmbElim.ListIndex = "1" Then flgElim = "1" End If End Sub
This is what I have now and it doesn't work.. I've also tried using cmbElim.Index but I dunno what else to try




Reply With Quote