Reset Combo Box with Active X Control to first value

Learn_VBA

New Member
Joined
Oct 9, 2017
Messages
25
I have an Excel sheet with a number of combo boxes. The one I need to rest the value for is called "Store".

How do I reset this Combox to the first value in the Named Range?
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
I get an error which says "run-time error '424': Object Required.

Do I need to reference the worksheet.

The worksheet is called "Input Sheet"
 
Upvote 0
Well then we need more details. If the command button where you are running the script from is not on the same sheet as the combobox then we would need sheet names.
And what kind of combobox

Is this a activex or Form control Combobox?
 
Upvote 0
I already provided the names and details above.

IT is fine, I have managed to sort the issue.

ThisWorkbook.InputSheet.Store.ListIndex=0 worked for me!
 
Upvote 0
I already provided the names and details above.

IT is fine, I have managed to sort the issue.

ThisWorkbook.InputSheet.Store.ListIndex=0 worked for me!

Show me where in your original post where you gave the sheet name.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,981
Messages
6,122,566
Members
449,089
Latest member
Motoracer88

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top