View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Neil Bhandar[_3_] Neil Bhandar[_3_] is offline
external usenet poster
 
Posts: 2
Default Identify precedents to cell in/outside of activesheet

Hello:

Need help with a piece of VBA code to identify if the
selected cell has any direct precedents outside of the
activesheet.

e.g.
a) Cell A1 (is on Sheet2) has formula "=Sheet1!A1*C2"

b) Cell A1 (is on Sheet2) has
formula "=NamedRange*C2", 'NamedRange' is a named range
refering to Cell A1 on Sheet1

Both these versions of formulas have precedents outside
the activesheet. Would like code to verify if any
external reference exists.

Your help is appreciated, Thanks in advance.
-Neil