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.
Bird
1
Dog
0
Cat
1


<tbody> </tbody>

In SheetB, I have a tally of the animals which produces apercentage.
Bird
Dog
Cat
100%
0%
100%
1
0
1



<tbody> </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

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
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,214,985
Messages
6,122,607
Members
449,090
Latest member
vivek chauhan

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