Bring cursor to the end of a sub

Hi,

if i have a very long sub, and my cursor is half way through it (im stepping through)

How can i bring that cursor to the end of the sub or out of the sub without picking ot up and dragging it down

Thanks
Seamus2626Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rgonzo1971Commented:
Maybe Step Out

Ctrl-Shift-F8 or Run F5
0
Seamus2626Author Commented:
But that will run the code, what about when i just want to leave the sub, mid way through
0
GrahamSkanRetiredCommented:
Left click on the End Sub and then choose Set Next Statement from the right-click menu
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

csehzIT consultantCommented:
Simply pressing CTRL + END that jumps to the end of the sub
0
Seamus2626Author Commented:
Yes, csehz, so that brings us to the end of the sub, but leaves the cursor still inside the sub
0
NorieVBA ExpertCommented:
Can't you just click the Stop button?
0
Seamus2626Author Commented:
So im stepping through code (F8) and the sub is very long, for any reason, i know longer want to step through the code, i dont want to drag the yellow cursor to the end of the sub,

how can me and the yellow cursor leave the sub

Many thanks
0
NorieVBA ExpertCommented:
You can press the stop button on the toolbar.

Or you could enter End in the Immediate Window.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Seamus2626Author Commented:
Perfect, any short key for Stop button?

Thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.