+ Reply to Thread
Results 1 to 3 of 3

VBE break line-number?

Hybrid View

  1. #1
    Registered User
    Join Date
    03-22-2009
    Location
    Antwerp
    MS-Off Ver
    Excel 2002 SP2
    Posts
    45

    VBE break line-number?

    Is there a way to get the linenumber where the manual step-by-step running code in debug-mode is? So which line is at that moment marked yellow?

    Is there a way to know if the code is in debug-mode? Maybe to know if in the menu the Debug/Step Over Shift+F8 is grayed out or not?

    thanks

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: VBE break line-number?

    Hello onidarbe,

    Line numbers can be added when you write your code, but there is no auto-number feature.

    If the line is highlighted, why do you need to know the line number?
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    03-22-2009
    Location
    Antwerp
    MS-Off Ver
    Excel 2002 SP2
    Posts
    45

    Re: VBE break line-number?

    Any OnTime event is normally being executed after vba ends but also when vba has halted in break-mode. The sequence of called procedures in debug-mode is thereby differently of normal code execution. Hard to debug your code then! ;-)

    So I'd like to postpone a OnTime event while in breakmode, calling and restarting itself when we are in breakmode. But for this I first need to find out that we are in breakmode! So I thought maybe the Application.VBE has also a property of where the executing code is.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 12
    Last Post: 06-22-2016, 01:11 PM
  2. Automatic Line Break at X number of characters
    By duyane in forum Excel General
    Replies: 3
    Last Post: 07-17-2012, 02:12 AM
  3. Replies: 5
    Last Post: 10-19-2011, 12:27 PM
  4. [SOLVED] Break cell into multiple lines by line break
    By Chia in forum Excel General
    Replies: 1
    Last Post: 08-20-2006, 01:40 AM
  5. Replies: 2
    Last Post: 06-14-2005, 02:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1