Access Lesson 11 Creating and Running Macros Microsoft Office 2010 Advanced Cable / Morrison 1.

Slides:



Advertisements
Similar presentations
Excel Lesson 9 Applying Advanced Formats to Worksheets
Advertisements

Access Lesson 13 Programming in Access Microsoft Office 2010 Advanced Cable / Morrison 1.
Office 2003 Post-Advanced Concepts and Techniques M i c r o s o f t Excel Project 7 Using Macros and Visual Basic for Applications (VBA) with Excel.
Using Macros and Visual Basic for Applications (VBA) with Excel
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 Excel 2013 Core Microsoft Office Excel 2013 Core Courseware # 3253 Lesson 8: Macros, Importing and Exporting Data.
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: Introductory Computer Applications 11.
Advanced Microsoft Word Hosted by Jared Hoffman Topics Keyboard Shortcuts Customizing Toolbars and Menus Auto Format & Auto Correct Tabs Inserting Pictures.
Access Lesson 2 Creating a Database
Automating Tasks With Macros
Customizing Word Microsoft Office Word 2007 Illustrated Complete.
Automating Tasks With Macros. 2 Design a switchboard and dialog box for a graphical user interface Database developers interact directly with Access.
With Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
Macros Tutorial Week 20. Objectives By the end of this tutorial you should understand how to: Create macros Assign macros to events Associate macros with.
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)
Excel Lesson 14 Creating and Using Macros Microsoft Office 2010 Advanced Cable / Morrison 1.
COMPREHENSIVE Excel Tutorial 8 Developing an Excel Application.
Exploring Microsoft Excel 2002 Chapter 8 Chapter 8 Automating Repetitive Tasks: Macros and Visual Basic for Applications By Robert T. Grauer Maryann Barber.
Word Lesson 16 Working with Macros Microsoft Office 2010 Advanced Cable / Morrison 1.
Access Tutorial 10 Automating Tasks with Macros
Chapter 9 Macros, Navigation Forms, PivotTables, and PivotCharts
Outlook Lesson 6 Managing Calendars and Tasks Microsoft Office 2010 Advanced Cable / Morrison 1.
Maintaining and Querying a Database Microsoft Access 2010.
Outlook Lesson 4 Managing Messages Microsoft Office 2010 Advanced Cable / Morrison 1.
© 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.
© Paradigm Publishing, Inc Access 2010 Level 2 Unit 2Advanced Reports, Access Tools, and Customizing Access Chapter 7Automating, Customizing, and.
INSERT BOOK COVER 1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Office Access 2010 by Robert Grauer, Keith.
Introduction to VBA MGMI Aug What is VBA? VBA = Visual Basic for Application Excel’s powerful built-in programming language An event-driven.
© 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 21 Fields and Forms.
1 ADVANCED MICROSOFT WORD Lesson 16 – Customizing Features Microsoft Office 2003: Advanced.
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.
Office 2003 Advanced Concepts and Techniques M i c r o s o f t Access Project 6 Switchboards, PivotTables, and PivotCharts.
Microsoft Office 2007 Access Chapter 6 Using Macros, Switchboards, PivotTables, and PivotCharts.
Intro to Excel - Session 7.31 Tutorial 7 - Session 7.3 Developing an Excel Application.
Automating Database Processing
Office 2003 Post-Advanced Concepts and Techniques M i c r o s o f t Access Project 7 Advanced Report and Form Techniques.
Microsoft Access 2013 ®® Tutorial 10 Automating Tasks with Macros.
® Microsoft Access 2010 Tutorial 10 Automating Tasks with Macros.
XP New Perspectives on Microsoft Office Access 2003 Tutorial 10 1 Microsoft Office Access 2003 Tutorial 10 – Automating Tasks With Macros.
A lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft® Excel 2013.
MS-Access XP Lesson 4. Modifying Queries 1.Select query in queries 2.Click design button or Right click on query and click design view 3.Change query.
Access Lesson 14 Creating Database Security and Documentation Microsoft Office 2010 Advanced Cable / Morrison 1.
Access Lesson 9 Using Advanced Form Features Microsoft Office 2010 Advanced Cable / Morrison 1.
1 Access Lesson 2 Creating Queries, Forms, and Reports Microsoft Office 2007 Fundamentals Story / Walls.
MSOffice Access Microsoft® Office 2010: Illustrated Introductory 1 Part 2 ® Building Queries.
COMPREHENSIVE Access Tutorial 11 Using and Writing Visual Basic for Applications Code.
Access Lesson 10 Adding Advanced Features to Reports Microsoft Office 2010 Advanced Cable / Morrison 1.
1 CA202 Spreadsheet Application Automating Repetitive Tasks with Macros Lecture # 12 Dammam Community College.
1 Access Lesson 1 Understanding Access Fundamentals Microsoft Office 2010 Fundamentals Story / Walls.
Chapter 10 Using Macros, Controls and Visual Basic for Applications (VBA) with Excel Microsoft Excel 2013.
1 Access Lesson 2 Creating Queries, Forms, and Reports Microsoft Office 2010 Fundamentals Story / Walls.
Chapter 11 Enhancing an Online Form and Using Macros Microsoft Word 2013.
Excel Tutorial 8 Developing an Excel Application
Using Macros, Switchboards, PivotTables, and PivotCharts
Microsoft Excel 2003 Illustrated Complete
Objectives Learn about Function procedures (functions), Sub procedures (subroutines), and modules Review and modify an existing subroutine in an event.
DB Implementation: MS Access Macros
Exploring Microsoft® Access® 2016 Series Editor Mary Anne Poatsy
Macro.
Microsoft Office Excel 2003
Tutorial 10 Automating Tasks with Macros
Presentation transcript:

Access Lesson 11 Creating and Running Macros Microsoft Office 2010 Advanced Cable / Morrison 1

Access Lesson 11 Cable / MorrisonMicrosoft Office 2010 Advanced Objectives Review macro security settings. Record a macro. Run a macro. Edit a macro. 222

Access Lesson 11 Cable / MorrisonMicrosoft Office 2010 Advanced Objectives (continued) Create a macro to open and print reports. Run a macro with multiple actions. Create an embedded macro. View and run an embedded macro. 333

Access Lesson 11 Cable / MorrisonMicrosoft Office 2010 Advanced Vocabulary argument code comment embedded macro filter macro run virus 444

Access Lesson 11 Cable / MorrisonMicrosoft Office 2010 Advanced Introduction A macro automates common, repetitive tasks you perform in Access. – Saves valuable time In this lesson, students will learn: – About macros and potential viruses – How to create and run macros – How to make changes to a macro – How to add a macro to a button that can be clicked to run the macro 5

Access Lesson 11 Cable / MorrisonMicrosoft Office 2010 Advanced Understanding Macros A macro is a series of actions that you want Access to perform. Visual Basic for Applications (or VBA) is the program used to create macros. When a macro is being recorded, all of the selections you make are translated into code. Code is simply the macro actions formatted in easy-to-read sentences. 6

Access Lesson 11 Cable / MorrisonMicrosoft Office 2010 Advanced Reviewing Macro Security Settings Macros are susceptible to virus attacks. A virus is a computer program that is designed to reproduce itself by attaching to other programs in a computer. To help protect against a virus hidden in a macro, you can set one of four macro security levels in Access. 7

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

Access Lesson 11 Cable / MorrisonMicrosoft Office 2010 Advanced Creating a Macro You create an Access macro in the Macro window. In the Macro window, you select actions. – Actions perform tasks, such as opening a form. You can select an action using one of several methods. Arguments are the additional information that Access needs based on the chosen action. 9

Access Lesson 11 Cable / MorrisonMicrosoft Office 2010 Advanced Creating a Macro (continued) Macro window for creating macros 10

Access Lesson 11 Cable / MorrisonMicrosoft Office 2010 Advanced Creating a Macro (continued) Macro window with completed macro 11

Access Lesson 11 Cable / MorrisonMicrosoft Office 2010 Advanced Running a Macro You can run a macro in three ways: – In the Navigation pane, right-click the macro name, and then click Run on the shortcut menu. – On the Database Tools tab, click the Run Macro button in the Macro group, select the macro in the Run Macro dialog box, and then click OK. – On the Macro Tools Design tab, click the Run button in the Tools group. 12

Access Lesson 11 Cable / MorrisonMicrosoft Office 2010 Advanced Editing a Macro You use the Macro window to edit a macro. A comment is explanatory text that you can add to a macro that does not affect the way the macro is executed. A filter displays only certain records based on certain criteria. 13

Access Lesson 11 Cable / MorrisonMicrosoft Office 2010 Advanced Editing a Macro (continued) Comment shown above action 14

Access Lesson 11 Cable / MorrisonMicrosoft Office 2010 Advanced Creating a Macro to Open and Print Reports When you record a macro, you can include multiple actions in it. – For example, you can create a macro to open, print, and close a form The actions should be entered in a logical order. 15

Access Lesson 11 Cable / MorrisonMicrosoft Office 2010 Advanced Creating a Macro to Open and Print Reports (continued) Macro window with three actions 16

Access Lesson 11 Cable / MorrisonMicrosoft Office 2010 Advanced Running a Macro with Multiple Actions It is always a good idea to run a macro after you complete it to be certain that it performs the tasks you chose. If there is a problem, you can edit the macro. 17

Access Lesson 11 Cable / MorrisonMicrosoft Office 2010 Advanced Creating an Embedded Macro An embedded macro is a macro that performs an action within an object. – Such as, a macro that opens a form when you are already viewing another form An embedded macro can be part of another object, such as a command button. Embedded macros have events that run the macro, such as On Click. 18

Access Lesson 11 Cable / MorrisonMicrosoft Office 2010 Advanced Creating an Embedded Macro (continued) Form events 19

Access Lesson 11 Cable / MorrisonMicrosoft Office 2010 Advanced Viewing and Running the Embedded Macro When you create a command button with an embedded macro, you can view the event and the embedded macro using the Property Sheet. To run the macro, click on the command button. 20

Access Lesson 11 Cable / MorrisonMicrosoft Office 2010 Advanced Viewing and Running the Embedded Macro (continued) Property Sheet for command button 21

Access Lesson 11 Cable / MorrisonMicrosoft Office 2010 Advanced Summary In this lesson, you learned: You can view and change macro security settings. Recording a macro can save you time for repetitive tasks. Running a macro performs the tasks that were recorded. Macros can be edited after they are created. 22

Access Lesson 11 Cable / MorrisonMicrosoft Office 2010 Advanced Summary (continued) You can create a macro that opens and prints multiple reports. When you run a macro with multiple actions, the actions are performed based on their order in the macro. An embedded macro is a macro that can be part of a command button in a form. 23

Access Lesson 11 Cable / MorrisonMicrosoft Office 2010 Advanced Summary (continued) When you view an embedded macro, it appears in the macro window, and you can run the macro by clicking the command button. 24