Excel Lesson 14 Creating and Using Macros Microsoft Office 2010 Advanced Cable / Morrison 1.

Slides:



Advertisements
Similar presentations
Introduction to Macro Introduction to Visual Basic for Application Recording a Macro Looking at the code of Recorded Macro.
Advertisements

Excel Lesson 9 Applying Advanced Formats to Worksheets
© Paradigm Publishing, Inc Excel 2013 Level 2 Unit 2Managing and Integrating Data and the Excel Environment Chapter 7Automating Repetitive Tasks.
Using Macros and Visual Basic for Applications (VBA) with Excel
Tutorial 7: Developing an Excel Application
Developing an Excel Application
Tutorial 8: Developing an Excel Application
XP New Perspectives on Microsoft Excel 2003, Second Edition- Tutorial 8 1 Microsoft Office Excel 2003 Tutorial 8 – Developing an Excel Application.
Microsoft Office 2007 Excel Web Feature Creating Web Pages Using Excel.
Microsoft Office Excel 2013 Core Microsoft Office Excel 2013 Core Courseware # 3253 Lesson 8: Macros, Importing and Exporting Data.
MACROS CS1100 Computer Science and its Applications CS11001.
Microsoft Office 2007 Excel Web Feature Creating Web Pages Using Excel.
With Microsoft Excel 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Excel 2010.
Access Lesson 8 Using Advanced Queries Microsoft Office 2010 Advanced Cable / Morrison 1.
Microsoft Office 2007 PowerPoint Web Feature Creating Web Pages Using PowerPoint.
Customizing Word Microsoft Office Word 2007 Illustrated Complete.
Using the Visual Basic Editor Visual Basic for Applications 1.
Lecture Excel: Multiple Worksheets. Workbook and Worksheets Multiple worksheets in a single workbook. When saved, only a single workbook (XLS) is saved.
Microsoft Excel 2003 Illustrated Complete Excel and Advanced Worksheet Management Customizing.
PowerPoint Lesson 1 Microsoft PowerPoint Basics
Office 2003 Post-Advanced Concepts and Techniques M i c r o s o f t Word Project 8 Working with Macros and Visual Basic for Applications (VBA)
Macros in Excel Intro to lab 1. Macroinstructions Macro is recorded in VBA module sequence of Excel operations Macros can automate tasks in Excel Macro.
COMPREHENSIVE Excel Tutorial 8 Developing an Excel Application.
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 Macros and VBA A macro is a set of instructions that tells Excel which commands to execute.
Word Lesson 16 Working with Macros Microsoft Office 2010 Advanced Cable / Morrison 1.
Microsoft Office Word 2013 Core Microsoft Office Word 2013 Core Courseware # 3250 Lesson 8: Using Productivity Tools.
Introduction to VBA. This is not Introduction to Excel We’re going to assume you have a basic level of familiarity with Excel If you don’t, or you need.
Outlook Lesson 6 Managing Calendars and Tasks Microsoft Office 2010 Advanced Cable / Morrison 1.
Microsoft ® Office 2007 Training Security II: Turn off the Message Bar and run code safely John Deere presents:
Press Esc to Exit ©2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in.
Outlook Lesson 4 Managing Messages Microsoft Office 2010 Advanced Cable / Morrison 1.
PowerPoint Lesson 9 Importing and Exporting Information Microsoft Office 2010 Advanced Cable / Morrison 1.
Microsoft Excel 2007 © Wiley Publishing All Rights Reserved. The L Line The Express Line to Learning L Line.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. WORD 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 22 Macros.
1 CA201 Word Application Increasing Efficiency Week # 13 By Tariq Ibn Aziz Dammam Community college.
NetTech Solutions Using Advanced Tools Lesson 5. NetTech Solutions Objectives Use Slide Finder Use the Format Painter Understand the purpose of macros.
Copyright 2007, Paradigm Publishing Inc. EXCEL 2007 Chapter 7 BACKNEXTEND 7-1 LINKS TO OBJECTIVES Record & run a macro Record & run a macro Save as a macro-
© Paradigm Publishing, Inc Access 2010 Level 2 Unit 2Advanced Reports, Access Tools, and Customizing Access Chapter 7Automating, Customizing, and.
Introduction to VBA MGMI Aug What is VBA? VBA = Visual Basic for Application Excel’s powerful built-in programming language An event-driven.
1 ADVANCED MICROSOFT WORD Lesson 16 – Customizing Features Microsoft Office 2003: Advanced.
Microsoft Office 2007 PowerPoint Web Feature Creating Web Pages Using PowerPoint.
Automating Database Processing Chapter 6. Chapter Introduction Design and implement user-friendly menu – Called navigation form Macros – Automate repetitive.
Word Lesson 17 Customizing Settings Microsoft Office 2010 Advanced Cable / Morrison 1.
Introduction to Video Game Programming (VGP) Mr. Shultz.
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Excel 2002 Lesson 1 Introduction.
ME 142 Engineering Computation I Macros. Key Concepts Macro Overview Recording a Macro Running a Macro Editing a Macro.
Intro to Excel - Session 7.31 Tutorial 7 - Session 7.3 Developing an Excel Application.
OCC Network Drives  H:\  P:\ 
Key Applications Module Lesson 21 — Access Essentials
© Wiley Publishing All Rights Reserved. Automating Tasks with Macros Book VIII, Chapter 7…
Data Analysis in Excel 2007 A Visual Guide By Nick Evangelopoulos May 2007.
Access Lesson 11 Creating and Running Macros Microsoft Office 2010 Advanced Cable / Morrison 1.
Presentation Companion Slide Pack The slides in this file were specifically designed to be used with the Presentation Companion Add-In. Training-Games.com.
Microsoft ® Office ® 2010 Office 2010 Security: Protecting your files.
A lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft® Excel 2013.
Chapter 10 Using Macros, Controls and Visual Basic for Applications (VBA) with Excel Microsoft Excel 2013.
Introduction to Microsoft Excel Macros COE 201- Computer Proficiency.
Access Lesson 9 Using Advanced Form Features Microsoft Office 2010 Advanced Cable / Morrison 1.
Microsoft Office 2007 Excel Chapter 9 Part 4: Comparing and merging Workbooks.
A lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft® Excel 2013.
1 CA202 Spreadsheet Application Automating Repetitive Tasks with Macros Lecture # 12 Dammam Community College.
Chapter 10 Using Macros, Controls and Visual Basic for Applications (VBA) with Excel Microsoft Excel 2013.
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Excel 2002 Using Macros Lesson.
Chapter 11 Enhancing an Online Form and Using Macros Microsoft Word 2013.
Excel Tutorial 8 Developing an Excel Application
Microsoft Excel 2003 Illustrated Complete
Macro.
Lesson 1 - Automating Tasks
Microsoft Office Excel 2003
Microsoft Excel 2007 – Level 2
Presentation transcript:

Excel Lesson 14 Creating and Using Macros Microsoft Office 2010 Advanced Cable / Morrison 1

Excel Lesson 14 Cable / MorrisonMicrosoft Office 2010 Advanced Objectives Understand macros. Review macro security settings. Record a macro. Save a macro as a macro-enabled workbook. Run a macro. 222

Excel Lesson 14 Cable / MorrisonMicrosoft Office 2010 Advanced Objectives (continued) Edit a macro. Create a button. Align and format a button. Open a macro-enabled workbook. 3

Excel Lesson 14 Cable / MorrisonMicrosoft Office 2010 Advanced Vocabulary 444 button code macro virus

Excel Lesson 14 Cable / MorrisonMicrosoft Office 2010 Advanced Introduction A macro automates a common, repetitive task you perform in Excel. In this lesson, students will learn how to: – Create macros – Run a macro – Make changes to a macro – Add a macro to a button 5

Excel Lesson 14 Cable / MorrisonMicrosoft Office 2010 Advanced Understanding Macros A macro records a series of steps that you do frequently, such as formatting text. Visual Basic for Applications (or VBA) is the program used to create macros. Code refers to the macro actions formatted in easy-to-read sentences. 6

Excel Lesson 14 Cable / MorrisonMicrosoft Office 2010 Advanced Reviewing Macro Security Settings Macros are susceptible to a virus attack. A virus is a computer program that is designed to reproduce by copying itself and attaching to other programs in a computer. – Can cause extreme damage to data You can set one of four macro security levels in Excel. 7

Excel Lesson 14 Cable / MorrisonMicrosoft Office 2010 Advanced Reviewing Macro Security Settings (continued) Macro security level options 8

Excel Lesson 14 Cable / MorrisonMicrosoft Office 2010 Advanced Reviewing Macro Security Settings (continued) Trust Center dialog box 9

Excel Lesson 14 Cable / MorrisonMicrosoft Office 2010 Advanced Recording a Macro To begin recording a macro: – Click the Record Macro button in the Code group on the Developer tab. – Fill out the options in the Record Macro dialog box. – Click OK to close the dialog box; the macro will start recording. 10

Excel Lesson 14 Cable / MorrisonMicrosoft Office 2010 Advanced Recording a Macro (continued) Record Macro dialog box 11

Excel Lesson 14 Cable / MorrisonMicrosoft Office 2010 Advanced Saving a Workbook as a Macro- Enabled Workbook The file extension.xlsm is used for a macro- enabled workbook. A macro-enabled workbook lets you save a macro in the workbook and run the macro. You can save an ordinary Excel workbook as a macro-enabled workbook using the Save As command. 12

Excel Lesson 14 Cable / MorrisonMicrosoft Office 2010 Advanced Saving a Workbook as a Macro- Enabled Workbook (continued) Save As dialog box 13

Excel Lesson 14 Cable / MorrisonMicrosoft Office 2010 Advanced Running a Macro After a macro is created, it is ready to use. Excel provides different ways to run a macro: – Use a shortcut key combination if one was created in the Record Macro dialog box. – On the Developer tab in the Code group, select the Macros button. The Macro dialog box appears. Click the macro you want and click the Run button. 14

Excel Lesson 14 Cable / MorrisonMicrosoft Office 2010 Advanced Editing a Macro Macros are easy to edit. To edit a macro, you need to make changes to the VBA code. The code word Sub indicates the start of the macro. The code End Sub signals the end of the macro. 15

Excel Lesson 14 Cable / MorrisonMicrosoft Office 2010 Advanced Editing a Macro (continued) Example of a macro in VBA code 16

Excel Lesson 14 Cable / MorrisonMicrosoft Office 2010 Advanced Editing a Macro (continued) Making edits to the Formats macro 17

Excel Lesson 14 Cable / MorrisonMicrosoft Office 2010 Advanced Creating a Button A button is called a control. – Controls the actions that are assigned to it When you create a button, you are asked to assign a macro to it. When you click the button, the macro will run. 18

Excel Lesson 14 Cable / MorrisonMicrosoft Office 2010 Advanced Creating a Button (continued) Worksheet with both buttons added 19

Excel Lesson 14 Cable / MorrisonMicrosoft Office 2010 Advanced Aligning and Formatting Buttons To select a button with an assigned macro, right-click the button. – A shortcut menu appears. With more than one button selected, the Format tab appears on the Ribbon. – Format tab has options to make changes to the buttons, such as aligning buttons. 20

Excel Lesson 14 Cable / MorrisonMicrosoft Office 2010 Advanced Aligning and Formatting Buttons (continued) Alignment options 21

Excel Lesson 14 Cable / MorrisonMicrosoft Office 2010 Advanced Aligning and Formatting Buttons (continued) You can right-click a button and choose Format Control from the shortcut menu. 22 Format Control dialog box

Excel Lesson 14 Cable / MorrisonMicrosoft Office 2010 Advanced Opening a Macro-Enabled Workbook When a workbook with macros is opened, a security warning appears on the Message Bar. – The warning is displayed whenever the Disable all macros with notification option is chosen. To enable the macros, click the Enable Content button on the Message Bar. 23

Excel Lesson 14 Cable / MorrisonMicrosoft Office 2010 Advanced Opening a Macro-Enabled Workbook (continued) Message Bar with security warning 24

Excel Lesson 14 Cable / MorrisonMicrosoft Office 2010 Advanced Summary In this lesson, you learned: Macros can automate frequently used tasks. You can review and change macro security settings. You can record a macro. A workbook can be saved as a macro- enabled workbook. 25

Excel Lesson 14 Cable / MorrisonMicrosoft Office 2010 Advanced Summary (continued) After a macro is created, you can run the macro. If changes need to be made to a macro, you can edit the macro. Buttons are a type of form control that have a macro assigned to them. 26

Excel Lesson 14 Cable / MorrisonMicrosoft Office 2010 Advanced Summary (continued) Buttons can be aligned and formatted. When you open a macro-enabled workbook, you can enable the workbook contents and run any macros in the workbook. 27