Show Line Numbers in MS Word Visual Basic

I

isaia

Hello,
I am new to VBA and am in the process of learning. I have noticed in books
and other training media that line numbers are displayed in the Visual Basic
Code window. How do you turn these on? (I'm using Office 2003 applications.)
 
J

Jonathan West

isaia said:
Hello,
I am new to VBA and am in the process of learning. I have noticed in
books
and other training media that line numbers are displayed in the Visual
Basic
Code window. How do you turn these on? (I'm using Office 2003
applications.)

Those line numbers are almost certainly just put in for the purpose of
making it easier to refer to a specific line of code in the text. Line
numbers aren't needed in VBA, and the VBA editor doesn't have a method of
turning line numbers on. If occasionally you need to use a GoTo statement,
you can use any label as the target.

There are third-party add-ins for the VBA editor you can install which will
allow you to add and remove line numbers if you really want to have them.
The one I use (which is free) is MZ-Tools 3.0 for VBA. You can download it
from here.

http://www.mztools.com/v3/download.aspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top