Results 1 to 8 of 8

Thread: [RESOLVED] How to fast jump to END Sub ?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jun 2017
    Posts
    236

    Resolved [RESOLVED] How to fast jump to END Sub ?

    hi ~ all

    ' example

    Now cursor is at Code Line = 1 of Sub Test_01

    How to let cursor fast jump to End Sub of Sub Test_01 ??? ( or ... is there any plugin to do it )


    Sub Test_00

    '
    '
    '
    End Sub

    Sub Test_01


    ' Code Line = 1
    ' Code Line = 2
    ' Code Line = 3
    '
    '
    '
    '
    '
    '
    '
    '
    '
    '
    '
    '
    ' Code Line = 1000
    ' Code Line = 1001
    ' Code Line = 1002
    ' Code Line = 1003

    End Sub

    Sub Test_02

    '
    '
    '
    '
    End Sub

    Sub Test_03

    '
    '
    '
    '
    End Sub
    Last edited by quickbbbb; Sep 15th, 2021 at 05:39 AM.

  2. #2
    PowerPoster
    Join Date
    Jun 2012
    Posts
    2,375

    Re: How to fast jump to END Sub ?

    Exit Sub?

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jun 2017
    Posts
    236

    Re: How to fast jump to END Sub ?

    Quote Originally Posted by Krool View Post
    Exit Sub?
    NO

    Let Mouse cursor fast move to End Sub without use Mouse scroll or keyboard page down


    because Sub Test_01 has 1003 code line

    use Mouse scroll or keyboard page down to move to End Sub is very slow
    Last edited by quickbbbb; Sep 15th, 2021 at 06:12 AM.

  4. #4
    Sinecure devotee
    Join Date
    Aug 2013
    Location
    Southern Tier NY
    Posts
    6,582

    Re: How to fast jump to END Sub ?

    I don't know of any key combination to go the the end of a procedure.
    I usually use Ctrl-DownArrow to go to the top of the next procedure, and I can back up to see the bottom of the previous that I was in.
    I guess you can use Ctrl-PageDown to do the same thing.
    Last edited by passel; Sep 15th, 2021 at 06:02 AM.
    "Anyone can do any amount of work, provided it isn't the work he is supposed to be doing at that moment" Robert Benchley, 1930

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Jun 2017
    Posts
    236

    Re: How to fast jump to END Sub ?

    Quote Originally Posted by passel View Post
    I don't know of any key combination to go the the end of a procedure.
    I usually use Ctrl-DownArrow to go to the top of the next procedure, and I can see the bottom of the previous that I was in.
    I guess you can use Ctrl-PageDown to do the same thing.
    WOW! GOOD

    Thanks very much !!!

  6. #6
    Sinecure devotee
    Join Date
    Aug 2013
    Location
    Southern Tier NY
    Posts
    6,582

    Re: [RESOLVED] How to fast jump to END Sub ?

    The difference is that Ctrl-DownArrow will go to the first line of the next procedure (and it scrolls it so the procedure line is at the top of the edit window), likewise Ctrl-UpArrow goes to the first line of the previous procedure.

    Ctrl-PageDown will go to the declaration line of the next procedure (the Sub or Function line), and it won't scroll the code unless it has to show the line.

    Ctrl-PageDown may work better for you since you want to see the bottom of the previous function, and that will be the case with Ctrl-PageDown without needing to scroll back up (unless you want the cursor on one of the previous lines of course).
    "Anyone can do any amount of work, provided it isn't the work he is supposed to be doing at that moment" Robert Benchley, 1930

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Jun 2017
    Posts
    236

    Re: [RESOLVED] How to fast jump to END Sub ?

    OK!

    thanks ~ passel

  8. #8
    PowerPoster
    Join Date
    Jan 2020
    Posts
    3,746

    Re: [RESOLVED] How to fast jump to END Sub ?

    Or their own development of a plug-in it, do a shortcut key.

Posting Permissions

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



Click Here to Expand Forum to Full Width