Locked lesson.
About this lesson
How the Stop keyword can be used during code development similar to a breakpoint.
Exercise files
Download this lesson’s related exercise files.
Using the Stop keyword.xlsm27.2 KB Using the Stop keyword - Completed.xlsm
28.3 KB
Quick reference
Using the Stop keyword
How to use the Stop keyword in a debugging context.
When to use
To create a permanent Breakpoint code that lasts between Excel sessions. (Useful for multi-session debugging, or when you haven't been able to complete all code branches in development.)
Instructions
- The Stop keyword is essentially a Breakpoint that remains between Excel sessions.
- Implement a Stop by typing Stop on any line
- The code will run to this point and then break (stop) so that you can continue with debugging
Hints & tips
- Don't forget to remove Stop lines before releasing the code (or your users will be launched into the Visual Basic Editor.)
Lesson notes are only available for subscribers.