Question:
excel vba coding line numbers?
anonymous
1970-01-01 00:00:00 UTC
excel vba coding line numbers?
Four answers:
Mike
2015-10-30 16:42:09 UTC
I haven t seen any built-in way to show line numbers. though there are toolbars you can add to your editor e.g. codeliner.
anonymous
2014-07-21 02:26:10 UTC
complicated factor lookup onto bing and yahoo it might help
?
2011-07-06 11:19:24 UTC
Yes



the code to dispay line number is row



example if are standing in some cell you can catch the row with the following code



variablename = activecell.row



the cell name will be



variablename = activecell.address (false, false)
Jonathan
2011-07-06 11:27:36 UTC
There is no native method to display the line numbers of your code in the VBA Editor. However, there are several 3rd party plugins that can do it for you. One I've used is from MZTools, (http://www.mztools.com/v3/download.aspx).



IF you are planning on using the line numbers for GOTO statements, DON'T! (A simple label works better, and doesn't need to be updated.) If you want them for reference and ease of navigating the subroutines, the above addin works great.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...