Cross reference Variable in Excel VBA

Hi

I've written number of routines in Excel VBA and some are now quite large.  

Is there a utility that I can use to cross reference the variables in my code, so that I can see on which line[s] each variable is used?
johndlAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Saqib Husain, SyedEngineerCommented:
What you can do is copy the code to an Excel sheet and either write a formula to identify the lines containing the variables or use data filter to isolate them.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
lee555J5Commented:
Many times for VBA and LISP programming, I will copy my code out to Notepad++ (available here http://notepad-plus.sourceforge.net/uk/site.htm). It has language syntax highlighting, and--here is what you may be looking for--you can double-click any text and Notepad++ auto-highlights that text wherever else it appears in that code. It is also great for matching open/close parentheses, brackets, and braces.
Lee
0
johndlAuthor Commented:
Thanks to both contributions.  I had hoped I'd get a ready made solution, but it seems not so far!

I may have to use soemthing like ssaqibh suggests, but I had hoped to avoid having to write a load of code to do the sorting.  lee555J5's suggestion also looks rather laborious when there's a lot of source code to analyse, but the Notepad++ popgram he highlights looks very useful for many other tasks.

I'll do a Micawber, for a while, in the hope of something turning up.

Regards
0
johndlAuthor Commented:
Neither solution really solved the problem.  I ended up writing a cross-reference macro myself to do that.  The solutions offered did give some help though.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming

From novice to tech pro — start learning today.