Message 1 of 6
Editing the Default.ivb

Not applicable
04-07-2003
11:18 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I have a code that works very well when you place it in a (VBA)Module called
"Functions", but I want to place that piece of code into the Deault.ivb.
Public Function ist(Arg1 As Double, Arg2 As Double, Arg3 As Double, Arg4 As
Double) As Double
'If the Arg1 is Smaller Then Arg2 the result is Arg3 otherwise Arg4.
If Arg1 < Arg2 Then
ist = Arg3
Else: ist = Arg4
End If
End Function
Problem is: it doesn't work! Do I have to do something more than just
copy-past the code in the Default.ivb?
Thanks alot,
T. Ham
Mechanical Engineer
CDS Engineering BV
I have a code that works very well when you place it in a (VBA)Module called
"Functions", but I want to place that piece of code into the Deault.ivb.
Public Function ist(Arg1 As Double, Arg2 As Double, Arg3 As Double, Arg4 As
Double) As Double
'If the Arg1 is Smaller Then Arg2 the result is Arg3 otherwise Arg4.
If Arg1 < Arg2 Then
ist = Arg3
Else: ist = Arg4
End If
End Function
Problem is: it doesn't work! Do I have to do something more than just
copy-past the code in the Default.ivb?
Thanks alot,
T. Ham
Mechanical Engineer
CDS Engineering BV