Signature (Visual Basic / VBA)
Public Sub Max2EqualFast( _
ByRef rOne As Variant _
, ByVal vTwo As Variant _
)
Code Example
Assuming
Dim lngMax As Long
lngMax = 45
for example
Max2EqualFast lngMax, 60
leaves
lngMax = 60
Parameters
| Parameter | Description |
|---|---|
| rOne | Argument which is set to the maximum value of the two arguments. |
| vTwo | Value which will replace rOne if vTwo is greater than rOne. |
Notes & Version History
| Note | This function performs numeric comparisons if both arguments are numeric, and it performs Binary comparisons if both arguments are string. |