Public Sub Max2EqualFast( _
ByRef rOne As Variant _
, ByVal vTwo As Variant _
) Assuming
Dim lngMax As Long
lngMax = 45
for example
Max2EqualFast lngMax, 60
leaves
lngMax = 60See also: Min2EqualFast Function
Max2 FunctionrOne: Argument which is set to the maximum value of the two arguments. Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.