Signature (Visual Basic / VBA)
Public Sub Min2EqualFast( _
ByRef rOne As Variant _
, ByVal vTwo As Variant _
)
Code Example
Assuming
Dim lngMin As Long
lngMin = 45
for example
Min2EqualFast lngMin, 30
leaves
lngMin = 30
Parameters
| Parameter | Description |
|---|---|
| rOne | Argument which is set to the minimum value of the two arguments. |
| vTwo | Value which will replace rOne if vTwo is less 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. |