Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
If-Then-Else resulting in DIV/0 error
Well, if anyone is interested here's my file: It's the button lable search for all employees by city,title,service,and salary that I a having problems with....thanks again for everyone's help -- scape ----------------------------------------------------------------------- scapen's Profile: http://www.excelforum.com/member.php...fo&userid=1515 View this thread: http://www.excelforum.com/showthread.php?threadid=26789 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
If-Then-Else resulting in DIV/0 error
try this If QualifiedEmployees = 0 Then AverageSalary = 0 else averagesalary= whateveryouwant - you need to define this If QualifiedEmployees = 0 then MsgBox "There are no employees who meet all of the criteria. _ Please rerun the macro." Else MsgBox "Macros are made more powerful by adding _ VBA statements." End If end su -- duan ----------------------------------------------------------------------- duane's Profile: http://www.excelforum.com/member.php...fo&userid=1162 View this thread: http://www.excelforum.com/showthread.php?threadid=26789 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
If-Then-Else resulting in DIV/0 error | Excel Programming | |||
If-Then-Else resulting in DIV/0 error | Excel Programming | |||
If-Then-Else resulting in DIV/0 error | Excel Programming | |||
If-Then-Else resulting in DIV/0 error | Excel Programming | |||
If-Then-Else resulting in DIV/0 error | Excel Programming |