Public Function ReplaceValue( _
      ByVal vOriginal As Variant _
    , ByVal vFind As Variant _
    , ByVal vReplace As Variant _
    ) As Variant    ReplaceValue(4, 0, -1) = 4
    ReplaceValue(0, 0, -1) = -1
    IsNull(ReplaceValue(Null, Null, "1")) = True ' #3
    IsNull(ReplaceValue(Null, 0, -1)) = True
    IsNull(ReplaceValue(0, 0, Null)) = TrueSee also:     ReplaceValueOfType Function
    ReplaceVarTypeWithValue FunctionSummary:     Original == Find: Return Replace
    Original <> Find: Return OriginalvOriginal: The value which is checked to see if it matches vFind. Function returns vReplace if vOriginal equals vFind. Function returns vOriginal if vOriginal does not equal vFind. vOriginal must be a numeric or string or Null value which is type-compatible with vFind. Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.