ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   If-Then-Else resulting in DIV/0 error (https://www.excelbanter.com/excel-programming/313065-if-then-else-resulting-div-0-error.html)

scapen[_2_]

If-Then-Else resulting in DIV/0 error
 

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

--
scape
-----------------------------------------------------------------------
scapen's Profile: http://www.excelforum.com/member.php...fo&userid=1515
View this thread: http://www.excelforum.com/showthread.php?threadid=26789


Tom Ogilvy

If-Then-Else resulting in DIV/0 error
 
If there is a question hidden in your post, it is apparent.

--
Regards,
Tom Ogilvy

"scapen" wrote in message
...

Ok I'm confused...I know I don't have a really good handle of
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

Thanks


--
scapen
------------------------------------------------------------------------
scapen's Profile:

http://www.excelforum.com/member.php...o&userid=15156
View this thread: http://www.excelforum.com/showthread...hreadid=267893





All times are GMT +1. The time now is 06:32 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com