Signature (Visual Basic / VBA)
Public Function MinusEqualFn( _
ByRef rLeft As Variant _
, ByVal vRight As Variant _
) As Variant
Code Examples
Assuming
Dim dblValue As Double
dblValue = 2.5
for example
MinusEqualFn(dblValue, 2) = .5
leaves
dblValue = .5
MinusEqualFn = rLeft - vRight
rLeft = rLeft - vRight
#define MinusEqualFn(rLeft, vRight) (rLeft -= vRight)
Parameters
| Parameter | Description |
|---|---|
| rLeft | Numeric or date value from which vRight is subtracted. The result of the subtraction is assigned back into the variable passed via rLeft (unless that value happens to be passed-by-value) and the result is also returned. |
| vRight | The numeric value that is subtracted from rLeft. |