© 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.

Slides:



Advertisements
Similar presentations
© Paradigm Publishing, Inc Excel 2013 Level 2 Unit 2Managing and Integrating Data and the Excel Environment Chapter 7Automating Repetitive Tasks.
Advertisements

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
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.
Microsoft Office 2007 Excel Web Feature Creating Web Pages Using Excel.
Word Lesson 1 Microsoft Word Basics
1 ADVANCED MICROSOFT POWERPOINT Lesson 5 – Using Advanced Text Features Microsoft Office 2003: Advanced.
Microsoft Office 2007 PowerPoint Web Feature Creating Web Pages Using PowerPoint.
Microsoft Office 2010 Access Chapter 1 Creating and Using a Database.
Access Lesson 2 Creating a Database
Customizing Word Microsoft Office Word 2007 Illustrated Complete.
Copyright 2007, Paradigm Publishing Inc. POWERPOINT 2007 CHAPTER 1 BACKNEXTEND 1-1 LINKS TO OBJECTIVES Create Presentation Open, Save, Run, Print, Close,Delete.
Using the Visual Basic Editor Visual Basic for Applications 1.
Basic Editing Lesson 2- Part 2. Navigating and Searching Through a Document Find command options, the mouse, scroll bars, and various keystroke and keyboard.
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.
Excel Lesson 14 Creating and Using Macros Microsoft Office 2010 Advanced Cable / Morrison 1.
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.
Access Tutorial 10 Automating Tasks with Macros
Customizing Microsoft Project
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. M I C R O S O F T ® Preparing for Electronic Distribution Lesson 14.
Objectives © Paradigm Publishing, Inc. 1 Objectives.
Microsoft Excel 2007 © Wiley Publishing All Rights Reserved. The L Line The Express Line to Learning L Line.
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 Exploring Microsoft Office Word 2007 Chapter 7 The Advanced User Robert Grauer, Keith Mulbery,
1 CA201 Word Application Increasing Efficiency Week # 13 By Tariq Ibn Aziz Dammam Community college.
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.
© 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 7 Move and Copy.
1. Chapter 9 Maintaining Documents 3 Managing Files As with physical documents, folders, and filing cabinets, electronic files and folders must be well.
© 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.
Microsoft Office 2007 PowerPoint Web Feature Creating Web Pages Using PowerPoint.
Introduction to MS WORD.
MICROSOFT WORD 2007 INTERMEDIATE/ADVANCED. CREATE A NEW STYLE BASED ON A SELECTED TEXT HOME tab > STYLES group dialog launcher > at the bottom of the.
© 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 5 Formatting Paragraphs.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. M I C R O S O F T ® Integrating with Other Programs Lesson 12.
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Excel 2002 Lesson 1 Introduction.
Intro to Excel - Session 7.31 Tutorial 7 - Session 7.3 Developing an Excel Application.
OCC Network Drives  H:\  P:\ 
© 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 13 Templates.
© 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 15 Advanced Tables.
Microsoft Access 2010 Chapter 10 Administering a Database System.
Presentation Companion Slide Pack The slides in this file were specifically designed to be used with the Presentation Companion Add-In. Training-Games.com.
Using Advanced Options Lesson 14 © 2014, John Wiley & Sons, Inc.Microsoft Official Academic Course, Microsoft Word Microsoft Word 2013.
Chapter 23. Copyright 2003, Paradigm Publishing Inc. CHAPTER 23 BACKNEXTEND 23-2 LINKS TO OBJECTIVES Record, Run, Pause, and Delete Macros Record, Run,
Macros Lesson 7. Objectives 1. Create a macro. 2. Run a macro. 3. Edit a macro. 4. Copy, rename, and delete macros. 5. Customize menus and toolbars. After.
A lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft® Excel 2013.
Microsoft Office 2010 is the newest version of Microsoft Office, offering features that provide users with better functionality and easier ways to work.
1 Microsoft Project 2003 Starting a New Project. 2 Creating a new project plan To start Microsoft Project, click the Windows Start menu. Point to All.
1 After completing this lesson, you will be able to: Open a file. Navigate through a document. Scroll through a document. Insert text in a document. Select.
A lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft® Excel 2013.
1 Word Lesson 1 Microsoft Word Basics Microsoft Office 2010 Introductory Pasewark & Pasewark.
A lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. a lesson approach Microsoft® Word 2010 © 2011 The McGraw-Hill Companies,
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.
COMPREHENSIVE Excel Tutorial 12 Expanding Excel with Visual Basic for Applications.
Chapter 8. Copyright 2003, Paradigm Publishing Inc. CHAPTER 8 BACKNEXTEND 8-2 LINKS TO OBJECTIVES Delete, Move, Copy, and Paste Text Delete, Move, Copy,
© 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 23 Footnotes and.
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.
Microsoft Excel 2007 – Level 2
Presentation transcript:

© 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

THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved. 2 Objectives Create a macro. Run a macro. Edit a macro. Copy, rename, and delete macros. Customize the Quick Access Toolbar.

THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved. 3 Macros Created to perform repetitive tasks quickly. Include command sequences and keystrokes. Save a sequence of tasks as a single command. Include Ribbon commands, formatting options, keystrokes, and dialog box selections.

THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved. 4 Create Macros Store macros in a document or in a template. Be default, Word stores macros in the Normal template. Save special-purpose macros in a special- purpose template. Plan the steps you want the macro to perform.

THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved. 5 Create Macros Display the Developer tab. Click the Record Macro button. Name the macro, but do not include spaces. –Macro names must begin with an alphabetic character. Determine where the macro will be stored. Key a brief description. Click the Keyboard icon and assign a keyboard shortcut to the macro. –Verify the save location for the macro keyboard shortcut. Click Close. When the recording pointer appears, every action taken with the mouse or the keyboard is recorded. Do not use the macro pointer to select text or move the insertion point. Click the Stop Recording button when finished.

THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved. 6 Record Macro Dialog Box

THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved. 7 Customize Keyboard Dialog Box

THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved. 8 Set Macro Security Macro settings located in the Trust Center. To view or change macro security settings: –Click the Macro Security button on the Developer tab or open the Word Options dialog box. –Click Trust Center. –Click Trust Center Settings. Verify that the selected setting is Disable all macros with notification. Click OK.

THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved. 9 Trust Center Dialog Box

THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved. 10 Run a Macro Open the template or document. Locate the security warning below the Ribbon. Click the Options button to open the Microsoft Office Security Options dialog box. Click Enable this content. Click OK. Click the Developer tab. Click the Macros button. Verify the setting for the Macros in drop-down list box. Select a macro. Click Run. –Run a macro by pressing the keyboard shortcut.

THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved. 11 Microsoft Office Security Options

THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved. 12 Edit a Macro Recorded macros create a VBA program. Use the Visual Basic Editor to edit macros.

THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved. 13 Edit a Macro Click the Macros button. –The keyboard shortcut to open the Macros dialog box is [Alt]+[F8]. Verify the setting for the Macros in text box. Click the template to edit. Click Edit and the Microsoft Visual Basic Editor window opens. Edit the macro and click the Save button. Click File and click Close and Return to Microsoft Word.

THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved. 14 Edit a Macro

THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved. 15 Macro after Editing

THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved. 16 Copy Macros Macros are stored in a module. Modules are attached to Word documents or templates. All recorded macros are stored in a module named “NewMacros.” To copy macros from one template to another, copy the NewMacros module. –All macros stored in the module are copied to the template.

THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved. 17 Copy Macros Open the Macros dialog box. Click the Organizer button. Click the Macro Project Items tab. –The left side of the dialog box lists modules in the current template. –Click Close File on the right side of the dialog box. –Click Open File on the right side of the dialog box, and locate the folder and template file. –Click Open. The NewMacros module appears on the right. Select NewMacros. Click Copy.

THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved. 18 Organizer

THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved. 19 Copy an Individual Macro Open the Macros dialog box. Select the macro name to be copied. Click Edit to open the Visual Basic Editor. Select the macro text beginning with Sub ( ) and ending with End Sub. Click the Copy button on the Visual Basic toolbar. Scroll to the bottom of the code window. Position the insertion point on a blank line. Click the Paste button.

THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved. 20 Copy an Individual Macro

THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved. 21 Rename a Macro Rename the copied macro by editing the text after the word “Sub” on the first line of the macro. Edit comment lines. Edit other code lines. Save the changes and return to Word.

THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved. 22 Renamed Macro

THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved. 23 Delete a Macro Open the Macro dialog box. Select the macro. Click [Delete] and click Yes. Click Close.

THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved. 24 Assign a Keyboard Shortcut Open the Word Options dialog box. Click Customize in the left pane. Click the Customize button to the right of Keyboard shortcuts to open the Customize Keyboard dialog box. Locate the Categories list and scroll to the bottom of the list. Click Macros. Verify the setting for the Save changes in drop-down list box. Locate the Macros list and click the macro. Key the keyboard shortcut in the Press new shortcut key text box. Click Assign. Click OK. Click Close.

THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved. 25 Customize the Quick Access Toolbar Three ways to add a command to the Quick Access Toolbar. –Click the Customize Quick Access Toolbar button. –Use the Word Options dialog box. –Use the shortcut menu.

THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved. 26 Quick Access Toolbar Command List

THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved. 27 Word Options Dialog Box

THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved. 28 Shortcut Menu

THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved. 29 Move the Quick Access Toolbar Default location is beside the Microsoft Office Button. Click the Customize Quick Access Toolbar. Click Show Below the Ribbon.

THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved. 30 Assign a Macro to the Quick Access Toolbar Open the Word Options dialog box. Click Customize in the left pane. Click the down arrow for the Choose commands from drop-down list box. Select Macros. Click the down arrow for the Customize Quick Access Toolbar and select an option. –For all documents (default) –For document Select the macro and click Add. Click OK.

THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved. 31 Reset the Quick Access Toolbar Open the Word Options dialog box. Click Customize in the left pane. Click the Reset button. Click Yes to restore the Quick Access Toolbar. Click OK.

THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved. 32 Lesson 22 Summary A Word macro enables you to quickly perform repetitive tasks involving command sequences and keystrokes. With a macro, you can save a sequence of tasks as a single command When you create macros, you store them in either a document or a template. By default, Word stores macros in the Normal template, but it is best to store special- purpose macros in a special-purpose template Before beginning a macro recording, plan the steps you want the macro to perform, choose a name for it, and decide where it will be stored When you see the recording pointer, every action you take with the mouse or the keyboard is being recorded in your macro

THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved. 33 Lesson 22 Summary You can assign a macro to a button, the Quick Access Toolbar, or to a keyboard shortcut key, which you can then use to run the macro. You can also run a macro from the Macros dialog box When you record a Word macro, a computer program is created that uses Visual Basic for Applications. You can change the macro by carefully editing the Visual Basic code You can use the Macros dialog box to edit, rename, or delete macros You use the Organizer to copy macros from one document or template to another You can customize the Quick Access Toolbar by adding and deleting commands