9
ME 142 Engineering Computation I Macros

ME 142 Engineering Computation I

Embed Size (px)

DESCRIPTION

ME 142 Engineering Computation I. Macros. Key Concepts. Macro Overview Recording a Macro Running a Macro Editing a Macro. Macro Overview. A macro is a short program or set of recorded keystrokes Stored as VBA program Great for repetitive tasks Can be edited - PowerPoint PPT Presentation

Citation preview

Page 1: ME 142 Engineering Computation I

ME 142Engineering Computation I

Macros

Page 2: ME 142 Engineering Computation I

Key Concepts

Macro Overview

Recording a Macro

Running a Macro

Editing a Macro

Page 3: ME 142 Engineering Computation I

Macro Overview

A macro is a short program or set of recorded keystrokes

Stored as VBA program Great for repetitive tasks Can be edited Great way to learn new VBA functions

Page 4: ME 142 Engineering Computation I

Recording a Macro

Recording of a macros can be launched from the View and Developer tabs or the lower left of the spreadsheet window

Page 5: ME 142 Engineering Computation I

Recording a Macro

Select Use Relative References button, if desired, prior to recording macro

Page 6: ME 142 Engineering Computation I

Recording a Macro

Prior to recording the macro, a dialog box is displayed

Note in particular: Shortcut key Storage location

Page 7: ME 142 Engineering Computation I

Ending a Macro Recording

Use the Stop Recording button on from the View or Developer tabs or the lower left of the spreadsheet window

Page 8: ME 142 Engineering Computation I

Running a Macro

Click on Macro from the View or Developer ribbons to list available macros

May also use previously assigned shortcut key combination to launch macro

Page 9: ME 142 Engineering Computation I

Editing a Macro

Edit a Macro as you would any VBA program

Alternately may launch editor by clicking on Macro in the View or Developer ribbons and selecting Edit