SELECT CASE or something else

917

New Member
Joined
Apr 5, 2013
Messages
23
Hi all

I have a worksheet that has a number of cells that is used to effectively act as a way of checking eligibility for a service.

These cells are, say;

A2, C2, E2

A8, C8, E8

A14, C14, E14

At present, the user has to manually check that two or more of the above cells has a value/text in it, before pressing an existing command button that opens another sheet for more info to be input.

I'm trying to find a way of adding some code to the existing button that checks each of these cells to see if more than one of them has a value/text in. Should less than two contain a value/text, I want a msgbox to appear (I'm ok with that bit lol) informing the user they are not eligible. They will then not be allowed to access the other sheet.

After doing some reading, I thought a SELECT CASE statement might help but have no idea what I'm doing, what code I should add, or whether there is a better way.

Any ideas gratefully received. Thanks
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.

Forum statistics

Threads
1,216,022
Messages
6,128,330
Members
449,442
Latest member
CaptBrownShoes

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