Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
If-Then-Else resulting in DIV/0 error scapen Excel Programming 2 October 10th 04 01:14 AM
If-Then-Else resulting in DIV/0 error scapen[_5_] Excel Programming 1 October 10th 04 12:51 AM
If-Then-Else resulting in DIV/0 error scapen[_4_] Excel Programming 1 October 10th 04 12:22 AM
If-Then-Else resulting in DIV/0 error scapen[_3_] Excel Programming 1 October 9th 04 11:25 PM
If-Then-Else resulting in DIV/0 error scapen[_2_] Excel Programming 1 October 9th 04 10:19 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"