LSM 710 and LSM 780
MACROS AND VISUAL BASIC
Systems
Macros
Carl Zeiss
02/2010 M60-1-0025
e
7
5.1.2.3
Editing and Debugging of Macros
The
Edit
in the
Edit Macro
panel button activates IDE (Integrated Development Environment), which
allows macros to be edited and debugged. Under the
Help - Macrosoft Visual Basics Help
menu item,
IDE contains detailed "online" help on its operation and on the VBA macro language. Therefore, only a
few hints are provided in the following:
You should activate the required toolbars. We would recommend you to activate the
Debug
toolbar via
the
View - Toolbars -Debug
menu item.
The following buttons in the toolbar can help you when debugging macros:
Starts running the command lines.
Stops running the command lines.
Interrupts processing of the command lines (pause).
Sets a breakpoint in the line with the text cursor.
Processes a command line and steps into subprocedures.
Processes a command line and steps over subprocedures.
Exits the subprocedure (step out).
Displays the value of the marked expression (Watch). If nothing is marked, the value of
the variable above the text cursor is displayed.
Activates the Watch window in which values of variables and expressions can be
displayed. For this, text is marked in the code window and dragged into the Watch
window. Variables can be modified in the Watch window.
In the left-hand edge of the code window you will find an arrow beside the current command line. A
new current command line can be determined by moving the arrow via the mouse. This makes it possible
to skip command lines or to process command lines several times.