If-Then-Else resulting in DIV/0 error

S

scapen

Ok I'm confused...I know I don't have a really good handle o
this.....here's what I have so far:

If QualifiedEmployees = 0 Then
AverageSalary = "0"
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

Thank
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top