understanding macros in excel 2007
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 PresentationTRANSCRIPT
![Page 1: Understanding Macros in Excel 2007](https://reader035.vdocuments.net/reader035/viewer/2022062218/5681687d550346895ddef220/html5/thumbnails/1.jpg)
Understanding Macros in Excel 2007
University of DelawareInformation Technology User Services
![Page 2: Understanding Macros in Excel 2007](https://reader035.vdocuments.net/reader035/viewer/2022062218/5681687d550346895ddef220/html5/thumbnails/2.jpg)
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](https://reader035.vdocuments.net/reader035/viewer/2022062218/5681687d550346895ddef220/html5/thumbnails/3.jpg)
Macros
A macro is a small program designed to perform a number of tasks all at once.
![Page 4: Understanding Macros in Excel 2007](https://reader035.vdocuments.net/reader035/viewer/2022062218/5681687d550346895ddef220/html5/thumbnails/4.jpg)
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](https://reader035.vdocuments.net/reader035/viewer/2022062218/5681687d550346895ddef220/html5/thumbnails/5.jpg)
Developer Tab
Office button, click on Excel Options
Show Developer tab in the ribbon
![Page 6: Understanding Macros in Excel 2007](https://reader035.vdocuments.net/reader035/viewer/2022062218/5681687d550346895ddef220/html5/thumbnails/6.jpg)
Check Security Settings
Macro SecurityDisable on certain conditions
![Page 7: Understanding Macros in Excel 2007](https://reader035.vdocuments.net/reader035/viewer/2022062218/5681687d550346895ddef220/html5/thumbnails/7.jpg)
Macros
Recording Macros
![Page 8: Understanding Macros in Excel 2007](https://reader035.vdocuments.net/reader035/viewer/2022062218/5681687d550346895ddef220/html5/thumbnails/8.jpg)
Macros
Playing a MacroSelect macro from list and click Run
![Page 9: Understanding Macros in Excel 2007](https://reader035.vdocuments.net/reader035/viewer/2022062218/5681687d550346895ddef220/html5/thumbnails/9.jpg)
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](https://reader035.vdocuments.net/reader035/viewer/2022062218/5681687d550346895ddef220/html5/thumbnails/10.jpg)
Relative Macros
Record a Relative Reference MacroLoosen cell restrictions; run on any cell range
![Page 11: Understanding Macros in Excel 2007](https://reader035.vdocuments.net/reader035/viewer/2022062218/5681687d550346895ddef220/html5/thumbnails/11.jpg)
Relative Macros
Running a Relative Reference MacroSelect active cell with relative data nearby, then run macro
![Page 12: Understanding Macros in Excel 2007](https://reader035.vdocuments.net/reader035/viewer/2022062218/5681687d550346895ddef220/html5/thumbnails/12.jpg)
More about Macros
Assign Keystroke to a Macro
When recording macro, assign keystroke
![Page 13: Understanding Macros in Excel 2007](https://reader035.vdocuments.net/reader035/viewer/2022062218/5681687d550346895ddef220/html5/thumbnails/13.jpg)
More about Macros
Deleting a MacroSelect macro from list and click Delete
![Page 14: Understanding Macros in Excel 2007](https://reader035.vdocuments.net/reader035/viewer/2022062218/5681687d550346895ddef220/html5/thumbnails/14.jpg)
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](https://reader035.vdocuments.net/reader035/viewer/2022062218/5681687d550346895ddef220/html5/thumbnails/15.jpg)
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](https://reader035.vdocuments.net/reader035/viewer/2022062218/5681687d550346895ddef220/html5/thumbnails/16.jpg)
Form Controls
What is a Form Control?GUI component that can be added to a worksheet
![Page 17: Understanding Macros in Excel 2007](https://reader035.vdocuments.net/reader035/viewer/2022062218/5681687d550346895ddef220/html5/thumbnails/17.jpg)
Form Controls
Adding a Control to a WorksheetInsert and select control form
![Page 18: Understanding Macros in Excel 2007](https://reader035.vdocuments.net/reader035/viewer/2022062218/5681687d550346895ddef220/html5/thumbnails/18.jpg)
Form Controls
Assign a Macro to a ControlRight-click control, Assign Macro, record macro
![Page 19: Understanding Macros in Excel 2007](https://reader035.vdocuments.net/reader035/viewer/2022062218/5681687d550346895ddef220/html5/thumbnails/19.jpg)
Forms & ActiveX Controls
Starting Using Form with MacroApply to a shape, assign to form
![Page 20: Understanding Macros in Excel 2007](https://reader035.vdocuments.net/reader035/viewer/2022062218/5681687d550346895ddef220/html5/thumbnails/20.jpg)
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](https://reader035.vdocuments.net/reader035/viewer/2022062218/5681687d550346895ddef220/html5/thumbnails/21.jpg)
VB & Macros
Opening the Visual Basic Editor
![Page 22: Understanding Macros in Excel 2007](https://reader035.vdocuments.net/reader035/viewer/2022062218/5681687d550346895ddef220/html5/thumbnails/22.jpg)
VB & Macros
Copy Macro from Workbook/TemplateOpen both worksheets, open VB editor, view Project Explorer, copy macro
![Page 23: Understanding Macros in Excel 2007](https://reader035.vdocuments.net/reader035/viewer/2022062218/5681687d550346895ddef220/html5/thumbnails/23.jpg)
VB & Macros
Adding Comments to CodeCan be added nearly everywhere, describe your process
![Page 24: Understanding Macros in Excel 2007](https://reader035.vdocuments.net/reader035/viewer/2022062218/5681687d550346895ddef220/html5/thumbnails/24.jpg)
VB & Macros
Adding Code to your MacroRecord simple macro, open in editor, add code
![Page 25: Understanding Macros in Excel 2007](https://reader035.vdocuments.net/reader035/viewer/2022062218/5681687d550346895ddef220/html5/thumbnails/25.jpg)
VB & Macros
Prompt for User InputRequest information from user
![Page 26: Understanding Macros in Excel 2007](https://reader035.vdocuments.net/reader035/viewer/2022062218/5681687d550346895ddef220/html5/thumbnails/26.jpg)
Resources
Web Sites:http://www.udel.edu/learn
http://www.udel.edu/help