Академический Документы
Профессиональный Документы
Культура Документы
Terry Bradbury
Terry.Bradbury@Gmail.com
Overview
Captures user actions and keystrokes from the user interface only
Not all Office applications have the Macro Recorder
Optional buttons by application:
Word has a Pause Recording button
Excel has a Use Relative References button
Macro Recorder Demo in Excel
Relative References
Page Setup
Macro Recorder Demo in Word
The Standard Toolbar
Arranging Windows
The Standard Toolbar (cont’d)
The Project Explorer
Design Mode
Run Mode
Break Mode
Break button (Ctrl+Break)
Error in code
Breakpoint in code
Stop statement in code
Watch settings
Resume Run Mode with Continue (F5)
Use Reset to stop
The Debugger
The Debugger is not a single tool, but a set of tools that work together
The Debug toolbar
Transport controls
Breakpoints (toggle, clear all)
Step through code (into, over, out, run to cursor)
Windows (immediate, locals, watch, call stack)
Watches (add, edit, quick watch)
The Debug object
The Immediate Window
The Locals Window
The Watch Window
The Call Stack
Compile VBAProject
Developer Add-Ins