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!

Formula Range.Dependents / Range.HasFormula

Status
Not open for further replies.

gs99

Programmer
Oct 7, 2001
40
0
0

How does VBA obtain information about formula dependents?

Help provides this format:
Range("A1").Dependents.Select

When I use this for a cell that has a formula, I get a VB message "No cells were found".

I really don't want to select it, I'm looking for code to obtain the "dependents" info, but the simpler select is not working.

Also, with Range.HasFormula, if a cell has "=D1", is this not considered a formula? My code says no. But isn't D1 a dependent?

Thanks,
George
 

Update on Range.HasFormula, if cell has "=D1", it's working now.

Thanks,
George
 
Sorry, wrong forum.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top