Probably, the most stupidest question ever raised here...

Ildestino

New Member
Joined
Jun 23, 2014
Messages
15
Greetings people,

I am having a huge blockade right now and I would need an inspiration...

I built a database for our employee to fill in. From Time to Time, we know that false information can be filled in. I have certain "Keys" that guides me to check if what they have filled in is correct. Now for corporate data protection, I am not allowed to show it here, but I can give you an almost 1 to 1 of what i want to do.

KEYS (own Worksheet):

[TABLE="width: 500"]
<tbody>[TR]
[TD]Plant Type[/TD]
[TD]Product[/TD]
[/TR]
[TR]
[TD]Vegetable[/TD]
[TD]Eggplant[/TD]
[/TR]
[TR]
[TD]Fruits[/TD]
[TD]Apple[/TD]
[/TR]
[TR]
[TD]Vegetable[/TD]
[TD]Cabbis[/TD]
[/TR]
[TR]
[TD]Fruits[/TD]
[TD]Pear[/TD]
[/TR]
[TR]
[TD]Vegetable[/TD]
[TD]Carrot[/TD]
[/TR]
[TR]
[TD]Vegetable[/TD]
[TD]Carrot[/TD]
[/TR]
</tbody>[/TABLE]


TEST WORKSHEET (Separate Worksheet)

[TABLE="width: 500"]
<tbody>[TR]
[TD]Plant Type[/TD]
[TD]Product[/TD]
[/TR]
[TR]
[TD]Vegetable[/TD]
[TD]Apple[/TD]
[/TR]
[TR]
[TD]Fruit[/TD]
[TD]Carrot[/TD]
[/TR]
[TR]
[TD]Vegetable[/TD]
[TD]Carrot[/TD]
[/TR]
</tbody>[/TABLE]

I would need a VBA coding that I can execute "Ad Hoc" to check if everything is OK in the "TEST Worksheet". So in this case, it should indicate that "FRUIT and CARROT" cannot be right.

You guys have any ideas how i should do that?

Kind regards

Ildestino
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
U could have 2 listboxes. One for plant type and one for products. When a plant type selection is made, only the correct possibilities are shown in the product listbox for the user to select ie. zero chance of error. HTH. Dave
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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