Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default Displaying Line #'s

I would like to add line numbers through out my VB code and then when I get
errors be able to display what line # caused the problem with a msgbox. The
problem I have is that I can not remember the format for the line # or the
code to display them.

For some reason I thought there was predefined structure to do this, but
maybe I'm way off target here.



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 37
Default Displaying Line #'s

MZTools (www.mztools.com) will do what you need.

"jutlaux" wrote:

I would like to add line numbers through out my VB code and then when I get
errors be able to display what line # caused the problem with a msgbox. The
problem I have is that I can not remember the format for the line # or the
code to display them.

For some reason I thought there was predefined structure to do this, but
maybe I'm way off target here.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default Displaying Line #'s

I used that to add the line #'s to the code, but is there a way to use those
numbers in a msgbox.


"BigJimmer" wrote:

MZTools (www.mztools.com) will do what you need.

"jutlaux" wrote:

I would like to add line numbers through out my VB code and then when I get
errors be able to display what line # caused the problem with a msgbox. The
problem I have is that I can not remember the format for the line # or the
code to display them.

For some reason I thought there was predefined structure to do this, but
maybe I'm way off target here.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 37
Default Displaying Line #'s

It's stored in Erl

msgbox("Error " Err.Number & " in line " & Erl)

"jutlaux" wrote:

I used that to add the line #'s to the code, but is there a way to use those
numbers in a msgbox.


"BigJimmer" wrote:

MZTools (www.mztools.com) will do what you need.

"jutlaux" wrote:

I would like to add line numbers through out my VB code and then when I get
errors be able to display what line # caused the problem with a msgbox. The
problem I have is that I can not remember the format for the line # or the
code to display them.

For some reason I thought there was predefined structure to do this, but
maybe I'm way off target here.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Displaying a horizontal quota line on a graph Looking for help today[_2_] Charts and Charting in Excel 3 March 1st 09 08:19 PM
Hard line break displaying as rectangle on import from SQL Martha Excel Programming 2 September 18th 06 06:37 PM
Displaying data in bar form on a line chart expo Charts and Charting in Excel 1 March 1st 06 11:10 PM
chart displaying horizontal line for zero data [email protected] New Users to Excel 3 February 1st 05 08:22 PM
when displaying formulas, how to start a new line in the same cel. EL Excel Discussion (Misc queries) 1 December 7th 04 07:18 AM


All times are GMT +1. The time now is 03:18 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"