View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips[_3_] Bob Phillips[_3_] is offline
external usenet poster
 
Posts: 2,420
Default How to reply a TRUE/False via VBA

Function Correct(Salary As Double, Tax As Double) As Boolean
Correct = Abs(Tax - (Salary * 0.1)) < 0.001
End Function


--
__________________________________
HTH

Bob

"FARAZ QURESHI" wrote in message
...
How to develop a simple UDF like:
=Correct(Salary,Tax)
so as to return a TRUE if the argument Tax = Salary * 10%?
Thanx!
--
Best Regards,
FARAZ A. QURESHI