VBA: When conditions are met, a message box will pop up

JennV

New Member
Joined
May 9, 2019
Messages
34
Sheet1:
[TABLE="width: 500"]
<tbody>[TR]
[TD]1[/TD]
[TD]Cat[/TD]
[TD]2019-05-21[/TD]
[TD]Error... This, this, and this[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Dog[/TD]
[TD]2019-05-21[/TD]
[TD]Error. This, this, and this[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Mouse[/TD]
[TD]2019-05-25[/TD]
[TD]In order - that, that, and that[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Fish[/TD]
[TD]2019-05-26[/TD]
[TD]Where, when, why, and how[/TD]
[/TR]
</tbody>[/TABLE]

Sheet2:
[TABLE="width: 500"]
<tbody>[TR]
[TD]5[/TD]
[TD]2019-05-22[/TD]
[TD]Dog[/TD]
[TD]...[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]2019-05-22[/TD]
[TD]Fish[/TD]
[TD]...[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]2019-05-22[/TD]
[TD]Mouse[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Sheet1 is my database while Sheet2 is where the user inputs data. Since there is Mouse and in the comments, it mentions 'In order', is there a way to generate a message pop up when the user tries to input comments for Mouse on Sheet2: "Note: Mouse has been previously input with 'In order'." but still allows the user to continue inputting their comments after closing that pop up? On the contrary, if Mouse had been previously input and the comments didn't mention 'In order', the pop up won't show up.

I know how to generate a userform in VBA but I'm still a beginner. I'm not sure if what I'm trying to do is possible...

Any help or guidance will be much appreciate, thank you in advance!
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

Forum statistics

Threads
1,224,820
Messages
6,181,154
Members
453,021
Latest member
Justyna P

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