Public Sub FixUpVariantToRange( _
ByRef rValue As Variant _
, ByVal vMin As Variant _
, ByVal VMAX As Variant _
) Assuming
Dim intNum As Integer
intNum = 20
for example
FixUpVariantToRange intNum, 30, 40
leaves
intNum = 30Example: Assuming
Dim strName As String
strName = "Word"
for example
FixUpVariantToRange strName, "Alpha", "India"
leaves
strName = "India"See also: RangeComp Function
IsBetween FunctionSummary: Value < Min: Let Value = Min
Value > Max: Let Value = Max
Min <= Value <= Max: Do nothing.rValue: The value which is modified if it is not between vMin and vMax inclusive. This argument is set to vMin if less than vMin or vMax if greater than vMax. Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.