troubleshooting Question

Excel VBA get starting position of cell informula

Avatar of Murray Brown
Murray BrownFlag for United Kingdom of Great Britain and Northern Ireland asked on
Microsoft Excel
3 Comments2 Solutions505 ViewsLast Modified:
   I  was given the following VBA code to find the precedents in a formula
  Is there a way to replace the cell position of each cell in the formula
  So If the precedent is A1 you replace that in the the formula with {1,1}
 but you don't affect another precedent with a cell address of eg "A11"
   Dim Cell As Range    
     For Each Cell In [A1].Precedents
         Debug.Print Cell.Address
     Next Cell
Join our community to see this answer!
Unlock 2 Answers and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros