Oops.., missing a closing parenthesis...
Example1: (uses Intersect function)
If Intersect(Selection, Range("homecell")) Then "True" Else "False"
...sorry about that!
Also, I mentioned looping the names collection but omitted an example
and so...
Dim nam As Variant
For Each nam In ActiveSheet.Names '//assumes local scope
If Selection.Name.Name = nam Then
'//do stuff
Exit For '//quit looking
End If
Next 'nam
--
Garry
Free usenet access at
http://www.eternal-september.org
ClassicVB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.
vb.general.discussion