Sandra Smith
asked on
Set combo to "" after user update in Excel form with VBA
I have a form whereby theuser updates underlying data. It can be an update to existing data or the user can close the account. What I would like (and can't seem to get done), is when the user closeds an account, the data is removed from the underlyiing worksheet and the form empties. However, the "group" combo box still reflect the group the user selected. How can I simply set this to an empty text string? I don't want the drop-down items to disappear, I just want a blank control. I tried setting it to "", but that did not work.
cboName.Text=""
ASKER
It is an item, but it simply won't reset.
Then use the Clear method:
ComboBox1.Clear
Kevin
ComboBox1.Clear
Kevin
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
That did it, thank you.
Kevin