+ All Categories
Home > Documents > Understanding Macros in Excel 2007

Understanding Macros in Excel 2007

Date post: 25-Feb-2016
Category:
Upload: eyad
View: 73 times
Download: 3 times
Share this document with a friend
Description:
Understanding Macros in Excel 2007. University of Delaware Information Technology User Services. In this session you will learn how to: Understand what a macro can accomplish Set up developer tab and macro security Plan a macro Record & play macros. - PowerPoint PPT Presentation
Popular Tags:
26
Understanding Macros in Excel 2007 University of Delaware Information Technology User Services
Transcript
Page 1: Understanding Macros in Excel 2007

Understanding Macros in Excel 2007

University of DelawareInformation Technology User Services

Page 2: Understanding Macros in Excel 2007

Macros

In this session you will learn how to:• Understand what a macro can accomplish• Set up developer tab and macro security• Plan a macro• Record & play macros

Page 3: Understanding Macros in Excel 2007

Macros

A macro is a small program designed to perform a number of tasks all at once.

Page 4: Understanding Macros in Excel 2007

Macro Planning

Think about how to break down the task into repeatable steps and determine what actions are needed to perform these steps in Excel.

Page 5: Understanding Macros in Excel 2007

Developer Tab

Office button, click on Excel Options

Show Developer tab in the ribbon

Page 6: Understanding Macros in Excel 2007

Check Security Settings

Macro SecurityDisable on certain conditions

Page 7: Understanding Macros in Excel 2007

Macros

Recording Macros

Page 8: Understanding Macros in Excel 2007

Macros

Playing a MacroSelect macro from list and click Run

Page 9: Understanding Macros in Excel 2007

More about Macros

More macro functionality is available, such as assigning a keystroke to a macro, making a relative reference macro, and deleting a macro.

Page 10: Understanding Macros in Excel 2007

Relative Macros

Record a Relative Reference MacroLoosen cell restrictions; run on any cell range

Page 11: Understanding Macros in Excel 2007

Relative Macros

Running a Relative Reference MacroSelect active cell with relative data nearby, then run macro

Page 12: Understanding Macros in Excel 2007

More about Macros

Assign Keystroke to a Macro

When recording macro, assign keystroke

Page 13: Understanding Macros in Excel 2007

More about Macros

Deleting a MacroSelect macro from list and click Delete

Page 14: Understanding Macros in Excel 2007

More about Macros

Excel 2007 File Formats and Extensions

Excel Workbook (.xlsx) [Default]Excel Macro-enabled Workbook (.xlsm)Excel Template (.xltx)Excel Macro-enabled Workbook Template (.xltm)Excel Binary Workbook (.xlsb)Excel Add-in (.xlam)

Page 15: Understanding Macros in Excel 2007

Advanced Topics

Form controls provide a user-friendly visual way to interact with data in a workbook. You can apply formatting, perform calculations, and more with controls you are already familiar with.

Page 16: Understanding Macros in Excel 2007

Form Controls

What is a Form Control?GUI component that can be added to a worksheet

Page 17: Understanding Macros in Excel 2007

Form Controls

Adding a Control to a WorksheetInsert and select control form

Page 18: Understanding Macros in Excel 2007

Form Controls

Assign a Macro to a ControlRight-click control, Assign Macro, record macro

Page 19: Understanding Macros in Excel 2007

Forms & ActiveX Controls

Starting Using Form with MacroApply to a shape, assign to form

Page 20: Understanding Macros in Excel 2007

Expert Topics

Using Visual Basic, you can create complex macros to perform many more actions and use it to copy macros from workbooks/templates.

Page 21: Understanding Macros in Excel 2007

VB & Macros

Opening the Visual Basic Editor

Page 22: Understanding Macros in Excel 2007

VB & Macros

Copy Macro from Workbook/TemplateOpen both worksheets, open VB editor, view Project Explorer, copy macro

Page 23: Understanding Macros in Excel 2007

VB & Macros

Adding Comments to CodeCan be added nearly everywhere, describe your process

Page 24: Understanding Macros in Excel 2007

VB & Macros

Adding Code to your MacroRecord simple macro, open in editor, add code

Page 25: Understanding Macros in Excel 2007

VB & Macros

Prompt for User InputRequest information from user

Page 26: Understanding Macros in Excel 2007

Resources

Web Sites:http://www.udel.edu/learn

http://www.udel.edu/help


Recommended