So here we pass three different values:
- Original range.
Range.Valuewhich is an option.- (1), .
, . Dictionary.Exists, .
? , . Range Range.Value, r = r.Value, r = r.Offset(0, 0).
. : Dictionary.Exists , . . , Dictionary.Exists :
, r r.Value, , - . r, , r.Offset(0, 0), , , .
, , , r , d.Keys(0):
Dim d As Scripting.Dictionary
Dim r As Range
Set r = [a1]
Set d = New Dictionary
d.Add r, 0
Set r = d.Keys(0)
Debug.Print d.Exists(r)