How not to use ComboBox change event?

Waimea

Active Member
Joined
Jun 30, 2018
Messages
465
Office Version
  1. 365
Platform
  1. Windows
Hi,

I want to use a select case for the value of a combobox but I don't want to use the combobox change event?

Ex. If combobox1.ListIndex = 1 I want a macro to run, and if combobox1.listindex = 2 I want another macro to run?
 
Well sorry I cannot help. I really would not think you need 320 scripts or 320 case statements.

I'm not sure I can help on this particular question without knowing fully what your wanting.

For some reason you believe you need dependent comboboxes which may be true but then still need numerous case statements.

It would be nice if you were to give a exact example of maybe three case statements and what each one would do.

For example if Country equals Germany and City equals Frankfurt then do this.

And country being one named range and Frankfurt being another named range.

Assuming each city and country had named ranges.

But then maybe someone else here on the forum can see what you want and be able to help here. I admit others here sometimes can understand needs easier then me.

I assume your still not at a Computer. Maybe your on Holiday vacation. I wonder if the wife is saying get off that Smart phone talking about Excel and Talk more with my Mom and Dad.
 
Last edited:
Upvote 0

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.

Forum statistics

Threads
1,217,294
Messages
6,135,687
Members
449,957
Latest member
cjames12

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