When developing code in any modern IDE (integrated development environment), you will always find that your cursor (caret) location is tracked as you navigate around your code and that you will have an option to 'go back' to where you were previously and then an option to 'go forward' to where you where before you 'went back'. Of course, out-of-the-box, the VBE doesn't do this (thanks Microsoft!) … but it does with VBE_Extras.
The option to 'go back' is in the main menu and the code window menu ('History – back' within the 'Goto' sub-menu) as well as being in the tool bar. Also it has a keyboard shortcut which, by default, is Ctrl + - (that is the Ctrl key and the minus key).
The option to 'go forward' is in the main menu and the code window menu ('History – forward' within the 'Goto' sub-menu) as well as being in the tool bar. Also it has a keyboard shortcut which, by default, is Ctrl + Shift + - (that is the Ctrl key and the Shift key and the minus key).
There is also an option to view each of the most recent locations you navigated to as a list in the toolbar so that you can select the location you require. This also has a keyboard shortcut which, by default, is Alt + - (that is the Alt key and the minus key).
Want to see it in action? See the VBE_Extras videos page, look for the "Cursor 'History'" video.
The navigation history is something I've dreamt about and quickly became the most valuable function that fits the way I work. Usually I start in a module, then go to a form then going back to the first module... now this is as easy as CTRL - and CTRL SHIFT - to move forward/backward through your VBA code and also includes a dropdown list for direct access to all the places you've been. VBE_Extras is worth of buying just for this incredible useful feature! 😀