View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
KingKarl KingKarl is offline
external usenet poster
 
Posts: 2
Default Alert when conditions are met

Worked perfectly well :-) thanx

Stevie_mac skrev:

There are several ways.
1 possible way is to use Validation.

Select cells B1:B12 , Click menu Data, Validation. Select 'Custom' from droplist and enter =$B$13<=$B$14 in the
formula.

Now when a user enters a value in B1 ~ B12 that makes B13 exceed B14, a Retry/Cancel box will appear.

The user will have little clue why though, unless you specify a custom message (you do this on the 'Error Alert' tab
when setting up the validation rule!)

Let us know if this is no good & I or someone else will show you another way.

NOTE: although this works for typed values, pasted values are not covered (you would need to handle this differently)

Regards - Steve.

"KingKarl" wrote in message
...
I'm wondering if it is possible to get Excel to alert the user if a cell that
contains a formula exceeds a restriction? In my case: cell B1:B12 are inputs,
B13 is the sum and B14 is the upper limit for B13. I'm using Conditional
Formatting, but it only turns the cell red. I want Excel to alert me with a
text-box when B13 exceeds B14. Is this possible? Thanx in advance...