Hi All,
I have a few combo boxes on a worksheet (from the Forms toolbar) which a user selects data from.
If the user makes a mistake then there is a Button which runs a macro which should clear the combo boxes out (i.e. leave them blank).
For some reason the macro to clear out the combo boxes does not appear to be working. It deletes the data in the cell that the combo box is linked to however the combo box entry stays the same.
Does anyone know how to remove this please?
Thanks
James
Hi jamesryan,
You need the following peice of code to clear all items from box
(change ComboBox1 to your combox name)ComboBox1.Clear
There are only 10 types of people in the world:
Those who understand binary, and those who don't!
I generally use the controls from the Controls ToolBox. If you actually need to remove the contents of a Forms ComboBox then use
'change "Drop Down 1 to suit ActiveSheet.Shapes("Drop Down 1").Select With Selection .ListFillRange = "" End With
Hope that helps.
RoyUK
--------
If you are pleased with a member's answer then use the Star icon to rate it, if you are pleased enough to part with cash consider a donation to Children in Need
For Excel Tips & Solutions, free examples and tutorials why not check out my downloads
New members please read & follow the Forum Rules
Remember to mark your questions Solved and rate the answer(s)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks