A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
The code works fine for me.... are you fully updated?
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am using Excel 365. I open a combo box with vba code when there is a certain value in a worksheet range with this code:
cmbccVnd.DropDown
The combobox is a field on a form. The fields on the form are saved by VBA code to a work sheet and then cleared. The problem is that the list portion of the combo box is still displayed when the save routine is finished running.
Is there any way to not display the list items of the combo box ?
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
The code works fine for me.... are you fully updated?
Thanks Snow Lu MSFT but that does not work. I have tried that before this post and tried it again. Each time I get an "Unspecified Error -2147467259 (80004005
Thanks Bernie but that does not work. I have tried that before this post and tried it again. Each time I get an "Unspecified Error -2147467259 (80004005)
Hi Alex,
Greetings! Thank you for posting to Microsoft Community.
Here is a sample to run the main code and then clear the list item in Combox1.
=========================
Private Sub ComboBox1_Click()
'Main code
Me.ComboBox1.Clear
End Sub
=========================
Best Regards,
Snow Lu
Use code like this in the userform code to just clear the selection
me.cbComboBoxName.Value = ""
This will clear both the entry and the list:
me.cbComboBoxName.Clear