+ Reply to Thread
Results 1 to 15 of 15

Line Nos. in Visual Basic Editor

  1. #1
    Registered User
    Join Date
    01-14-2008
    Posts
    26

    Line Nos. in Visual Basic Editor

    Is there any way I can display line numbers against the code in the Visual Basic Editor?

    Or can I see in the current line number in the status bar?

    or GoTo Line number?

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    The line and column of the cursor position are displayed on the menu bar at the top of the VBE window.

  3. #3
    Registered User
    Join Date
    01-14-2008
    Posts
    26


    I didn't find a tongue-biting icon here.. adjusting with a wink

    Thanks!

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    Does your scroll wheel work in the VBE?

  5. #5
    Registered User
    Join Date
    01-14-2008
    Posts
    26
    nope!
    waiting for your answer..

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    One of several such utilities available, and the one I use. Drove me crazy not being able to scroll.

    http://www.geocities.com/SiliconVall...freewheel.html

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    Some other options mentioned in http://www.ozgrid.com/forum/showthread.php?t=74916

  8. #8
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Hi guys
    Quote Originally Posted by shg
    Does your scroll wheel work in the VBE?
    This particular annoyance has been fixed in Excel 2007.
    (just in case you didn't know).

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  9. #9
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Quote Originally Posted by shg
    The line and column of the cursor position are displayed on the menu bar at the top of the VBE window.
    I don't see this in my VBE. Is there a way to toggle it on/off?
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  10. #10
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Hi NBVC

    Quote Originally Posted by NBVC
    I don't see this in my VBE. Is there a way to toggle it on/off?
    Haven't you got nappies (oops, diapers) to change or something
    It's part of the "Standard" toolbar - do you have this displayed?

    HTH

    DominicB

  11. #11
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    NBVC,

    See example

    VBA Noob
    Attached Files Attached Files
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  12. #12
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Hi guys,

    I do have the Standard toolbar visible, but don't see the row/column identification as shown in VBA Noob's sample.

    ....must be something obvious I am missing?

    EDIT: I attached a screen shot of my VBE
    Attached Files Attached Files
    Last edited by NBVC; 02-27-2008 at 11:56 AM.

  13. #13
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    ...hmmm strange.....

    I think I "fixed it". All I did was just moved the Standard Toolbar down and low and behold the line/column identifier showed up... and when I put the toolbar back, the identifier remained... so I guess it just needed to be "awoken" or something....

    I never knew this feature existed...


    Thanks guys.
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    03-30-2006
    Posts
    1

    Add support for the scroll wheel to Visual Basic for Applications

    I Just did It! Works great!

    To add support for the scroll wheel to Visual Basic for Applications follow this

    http://office.microsoft.com/en-us/ex...175901033.aspx

  15. #15
    Registered User
    Join Date
    08-29-2012
    Location
    Brush Prairie, WA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Add support for the scroll wheel to Visual Basic for Applications

    I had the same problem in Excel. I searched for Excel Visual Basic Editor show line number.
    Since the line and column are at the end of the default display of the toolbar window, it is the first thing to get cut off when another toolbar on the same line and too wide for both to fit in the monitor window.
    I followed the advice and drug one toolbar down so each toolbar was on a separate line and the line and column display window appeared.
    I had a difficult time finding an answer so I'm glad I came across this thread.
    So the short answer is the line and column number is part of the default toolbar. Just customize one of the toolbars to make both totally fit in your display window.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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