Call Stack Command (View Menu)

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

Displays the Call Stack dialog box, which lists the procedures that have started but are not completed. Available only in break mode.

When Visual Basic is executing the code in a procedure, that procedure is added to a list of active procedure calls. If that procedure then calls another procedure, there are two procedures on the list of active procedure calls. Each time a procedure calls another Sub, Function, or Property procedure, it is added to the list. Each procedure is removed from the list as execution is returned to the calling procedure. Procedures called from the Immediate window are also added to the calls list.

You can also display the Call Stack dialog box by clicking the Calls button (...) next to the Procedure box in the Locals window.

Toolbar shortcut: Gg264656.tbr_call_ZA01201683(en-us,office.14).gif. Keyboard shortcut: CTRL+L.