Help VB6 Finding Code Line Number

Posted on 2004-08-24
Last Modified: 2010-05-02
I am trying to make an exe file but I get an error on line xxxxx. Is there a way to find the line number without arrow down and counting each one.
Question by:falconone2
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3

Expert Comment

ID: 11888567
When in the VB IDE, the cursor position is given in the toolbar.  As you scroll down, you will see the Ln (for line) and Col (for column) update.  Use the Ln number to find the correct line number where the error lies.

Hope it helps!

Author Comment

ID: 11888589
I have not been doing this long. So will you tell me how to put it in VB IDE
Sorry if this sounds stupid.

Expert Comment

ID: 11888628
The IDE is the "Integrated Development Environment" which is what you are using when you run Visual Basic.  When you are editing your code, you should see in the toolbar (just under the menu bar) an area which displays your current cursor position in the editor.  It will look something like "Ln 32, Col 4"
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now


Expert Comment

ID: 11888650
If you do not see it, make sure that the "Standard Toolbar" is checked in the View->ToolBars->Standard menu selection.

Author Comment

ID: 11888656
I know I have seen it before but it is not showing up in the toolbar. I have closed all tools but one and nothing is there. If there is nothing I can do to turn it on tell me and I will accept your answer. Thanks falconone2

Author Comment

ID: 11888678
Standard Toolbar is the one I had left on. Just no LN etc.

Accepted Solution

nichia earned 250 total points
ID: 11888715
It should appear when you have a code window open (editing the text of the code)
If you have a Form window open (designing a form) the toolbar will display the XY coords of the form's conrols as you place or move them.

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction In a recent article ( for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question