View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
Bob Phillips[_6_] Bob Phillips[_6_] is offline
external usenet poster
 
Posts: 11,272
Default How can I install a Message Box?

Do you have a total cell per employee? If so, you could do conditional
formatting on that cell.

For instance, say you have a total in A1, with the details in A1:An, then
you could set CF on A1 with a test of greater than 5, and set the cell
colour for this test.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"jones360" wrote in message
...
All employees are given 5 personal/sick days for the entire year. They
cannot exceed this amount and they do not carry over from year to year.

The
data is compiled in a column format.

Thanks!

" wrote:

need more info.
how do you calculate the sick time? xl will have to
duplicate this math. this is what will trigger the msgbox.
what is the data layout? rows or columns? need this so xl
will know what to add up.
do emps have different rates or do all have the same amout
of sick time? need a qualifier.
the macro will reside in the worksheet's on change event
and do the math every time someone enters data in the
worksheet.

-----Original Message-----
I am creating an absence report form for work and would

like to have a
message box appear when a supervisor tries to enter more

sick days than the
employee is allowed. I would like the box to say: The

employee has exceeded
his/her accrued amount of sick days.

Then would like the buttons: Retry or Cancel


.