MsgBox when a certain percentage is reached

JennV

New Member
Joined
May 9, 2019
Messages
34
Hello there,
SheetA is where a user can input a type of animal and labelit 1 or 0. The sheet is interactive and is in a list form where the user can continuouslyadd animals and labels.
<tbody> [TD="width: 312, bgcolor: transparent"] Bird [/TD]
[TD="width: 312, bgcolor: transparent"] 1 [/TD]
[TD="width: 312, bgcolor: transparent"] Dog [/TD]
[TD="width: 312, bgcolor: transparent"] 0 [/TD]
[TD="width: 312, bgcolor: transparent"] Cat [/TD]
[TD="width: 312, bgcolor: transparent"] 1 [/TD]
[TD="width: 312, bgcolor: transparent"] [/TD]
[TD="width: 312, bgcolor: transparent"] [/TD]
</tbody>

In SheetB, I have a tally of the animals which produces apercentage.
<tbody> [TD="width: 208, bgcolor: transparent"] Bird [/TD]
[TD="width: 208, bgcolor: transparent"] Dog [/TD]
[TD="width: 208, bgcolor: transparent"] Cat [/TD]
[TD="width: 208, bgcolor: transparent"] 100% [/TD]
[TD="width: 208, bgcolor: transparent"] 0% [/TD]
[TD="width: 208, bgcolor: transparent"] 100% [/TD]
[TD="width: 208, bgcolor: transparent"] 1 [/TD]
[TD="width: 208, bgcolor: transparent"] 0 [/TD]
[TD="width: 208, bgcolor: transparent"] 1 [/TD]
[TD="width: 208, bgcolor: transparent"] [/TD]
[TD="width: 208, bgcolor: transparent"] [/TD]
[TD="width: 208, bgcolor: transparent"] [/TD]
</tbody>

I’m wondering if there’s any way I can have a message boxpop-up while the user enters the data on SheetA when it reaches a certainpercentage in SheetB. The trick is, the data entered on SheetA doesn’t gettransferred to SheetB until the user clicks on a ‘Transfer’ button on SheetA.
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Instead of trick with button transfer use COUNT formula on SheetB, then into code of SheetB use event Worksheet_Calculate() where you can check values and if >100% gives you msgbox.
Or if you don't want to remove trick with transfer button and then end of 'transfer' macro add checking of these values.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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