Hello,
I have 2 combo boxes cmbMuscleGroup cmbMusclePart.
When I choose an item from cmbMuscleGroup ex.chest the corresponding items appear in the cmbMusclePart ex. upper,middle,lower
If a mistake was made and I wanted to change cmbMuscleGroup,
I want to remove the items from cmbMusclePart.
Clear method not available in VBA.
Tried numerous methods, code generates a error unable to remove item 2 not in list, am I missing something, or is there another method.
Any help would be appreciated.
oaquao
If cmbMusclePart.Value <> " " Then
cmbMusclePart.Value = " "
Dim i As Integer
Dim listCount As Integer
listCount = cmbMusclePart.listCount
'For i = 0 To cmbMusclePart.listCount
'For i = 0 To listCount
For i = 0 To listCount - 1
cmbMusclePart.RemoveItem i
Next i
I have 2 combo boxes cmbMuscleGroup cmbMusclePart.
When I choose an item from cmbMuscleGroup ex.chest the corresponding items appear in the cmbMusclePart ex. upper,middle,lower
If a mistake was made and I wanted to change cmbMuscleGroup,
I want to remove the items from cmbMusclePart.
Clear method not available in VBA.
Tried numerous methods, code generates a error unable to remove item 2 not in list, am I missing something, or is there another method.
Any help would be appreciated.
oaquao
If cmbMusclePart.Value <> " " Then
cmbMusclePart.Value = " "
Dim i As Integer
Dim listCount As Integer
listCount = cmbMusclePart.listCount
'For i = 0 To cmbMusclePart.listCount
'For i = 0 To listCount
For i = 0 To listCount - 1
cmbMusclePart.RemoveItem i
Next i