View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
Lucifix[_4_] Lucifix[_4_] is offline
external usenet poster
 
Posts: 1
Default Simple Calculation


But what is different then this:

Private Function IzracunDDV() As Boolean

If TextSkupajDDV + TextBrezDDV = TextSkupajZDDV Then
IzracunDDV = False
Exit Function
End If

Application.ScreenUpdating = True
IzracunDDV = True
End Function

Lets say that I would like to insert in fields:
TextSkupajDDV - 2
TextBrezDDV - 1
TextSkupajZDDV - 3

This function will say that this is not correct, which isn't true.
2 + 1 = 3

What would be right function then?

Thank you for helping me.
Lucifi

--
Lucifi
-----------------------------------------------------------------------
Lucifix's Profile: http://www.excelforum.com/member.php...fo&userid=2917
View this thread: http://www.excelforum.com/showthread.php?threadid=49545