Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Check activecell against a range

Status
Not open for further replies.
Mar 29, 2002
23
0
0
US
I want to run a command line only if the active cell that is double clicked is in a range.

How do I check the active cell against a range?
 
You can use

if typename(intersect(activecell,range(&quot;A1:A6&quot;)))<>&quot;Nothing&quot; then
...process code here...
end if

(fill in your range as appropriate)
Rob
[flowerface]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top