Jan 8, 2007 #1 popper Programmer Dec 19, 2002 103 AU Hi Using VBA, I want to be able to examine a formula in an Excel cell and generate a list of cells referred to in it. Anyone know how to do this? With thanks in advance
Hi Using VBA, I want to be able to examine a formula in an Excel cell and generate a list of cells referred to in it. Anyone know how to do this? With thanks in advance
Jan 8, 2007 1 #2 Fenrirshowl Technical User Apr 29, 2003 357 GB You will need to use the precedents property. Not knowing exactly what you want, hopefully something in the following will help. Code: Sub listdeps() For Each i In ActiveCell.Precedents MsgBox i.Address Next i End Sub Upvote 0 Downvote
You will need to use the precedents property. Not knowing exactly what you want, hopefully something in the following will help. Code: Sub listdeps() For Each i In ActiveCell.Precedents MsgBox i.Address Next i End Sub
Jan 9, 2007 1 #3 Loomah Technical User Mar 4, 2002 1,911 IE or even just msgbox activecell.precedents.address ;-) If a man says something and there are no women there to hear him, is he still wrong? How do I get the best answers? Upvote 0 Downvote
or even just msgbox activecell.precedents.address ;-) If a man says something and there are no women there to hear him, is he still wrong? How do I get the best answers?