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


Hi,

becouse I newbie this question might sound little stupid :)

In VBA I created UserForm where I inserted three TextBoxes:
- TextSkupajDDV
- TextBrezDDV
- TextSkupajZDDV

I created formula that would check if the statemant is right:

Private Function IzracunDDV()

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

Application.ScreenUpdating = True
IzracunDDV = True
End Function


Can you please tell me what I did wrong, becouse it is not currect :(


--
Lucifix
------------------------------------------------------------------------
Lucifix's Profile: http://www.excelforum.com/member.php...o&userid=29179
View this thread: http://www.excelforum.com/showthread...hreadid=495452