Collapse the table of content
Expand the table of content
Expand Minimize

Run to Cursor Command (Debug Menu)

This page is specific to the Visual Basic for Applications (VBA) Language Reference for Office 2010.

When your application is in design mode, use Run To Cursor to select a statement further down in your code where you want execution to stop. Your application will run from the current statement to the selected statement and the current line of execution margin indicator, Gg264848.wcurline_ZA01201810(en-us,office.14).gif appears in the Margin Indicator bar.

You can use this command, for example, to avoid stepping through large loops.

Keyboard shortcut: CTRL+F8.

Show:
© 2015 Microsoft