Skill Set 4. Macros. By the end of this Skill Set you should be able to: Record a Macro Run a Macro Assign a Macro Create a Multiple Action Macro



Similar documents
MS WORD 2007 (PC) Macros and Track Changes Please note the latest Macintosh version of MS Word does not have Macros.

Working with Macros and VBA in Excel 2007

Automate tasks with Visual Basic macros

ECDL. European Computer Driving Licence. Spreadsheet Software BCS ITQ Level 2. Syllabus Version 5.0

Excel macros made easy

Macros in Word & Excel

Using the Advanced Tier Data Collection Tool. A Troubleshooting Guide

Creating tables of contents and figures in Word 2013

New Features in Microsoft Office 2007

Introduction to Word 2007

Microsoft Migrating to Word 2010 from Word 2003

This Skill Builder demonstrates how to define and place sketched symbols in drawings.

Styles, Tables of Contents, and Tables of Authorities in Microsoft Word 2010

VBA PROGRAMMING FOR EXCEL FREDRIC B. GLUCK

Microsoft Migrating to PowerPoint 2010 from PowerPoint 2003

Word basics. Before you begin. What you'll learn. Requirements. Estimated time to complete:

Migrating to Excel 2010 from Excel Excel - Microsoft Office 1 of 1

Maximizing the Use of Slide Masters to Make Global Changes in PowerPoint

Microsoft Word 2011: Create a Table of Contents

Microsoft Word 2013 Macros (Level 3)

Internet Explorer 7. Getting Started The Internet Explorer Window. Tabs NEW! Working with the Tab Row. Microsoft QUICK Source

ECDL. European Computer Driving Licence. Word Processing Software BCS ITQ Level 2. Syllabus Version 5.0

Microsoft Office Excel 2007 Key Features. Office of Enterprise Development and Support Applications Support Group

Microsoft Word 2010 Training

Microsoft Word Quick Reference Guide. Union Institute & University

Word 2010: Mail Merge to with Attachments

The Application Getting Started Screen is display when the Recruiting Matrix 2008 Application is Started.

In this session, we will explain some of the basics of word processing. 1. Start Microsoft Word 11. Edit the Document cut & move

Presentations and PowerPoint

Microsoft PowerPoint 2010 Handout

Getting Started Guide. Chapter 14 Customizing LibreOffice

Microsoft Office Access 2007 Basics

NAVIGATION TIPS. Special Tabs

Computer Training Centre University College Cork. Excel 2013 Level 1

Basic Microsoft Excel 2007

Section 5 Icons and Shortcuts

Instructions to operating forms created in MSWord and Excel

Using PowerPoint Short Course

WHAT S NEW IN WORD 2010 & HOW TO CUSTOMIZE IT

Microsoft Word 2010 Prepared by Computing Services at the Eastman School of Music July 2010

Microsoft Excel 2013: Headers and Footers

Microsoft Word 2011 Basics for Mac

Using Microsoft Office XP Advanced Word Handout INFORMATION TECHNOLOGY SERVICES California State University, Los Angeles Version 1.

CREATING FORMAL REPORT. using MICROSOFT WORD. and EXCEL

Overview of Microsoft Office Word 2007

Formatting & Styles Word 2010

Microsoft Access 2010 Part 1: Introduction to Access

MS Word 2007 practical notes

MICROSOFT EXCEL 2011 MANAGE WORKBOOKS

Navigating Microsoft Word 2007

14.1. bs^ir^qfkd=obcib`qflk= Ñçê=emI=rkfuI=~åÇ=léÉåsjp=eçëíë

Courses never cancelled: guaranteed Last minute rescheduling 24 months access to Microsoft trainers 12+ months schedule UK wide delivery

Page Formatting In Microsoft Word XP

Internet Explorer 7 for Windows XP: Obtaining MIT Certificates

Guide for usage of digital signatures in Microsoft Office Documents

Outlook . User Guide IS TRAINING CENTER. 833 Chestnut St, Suite 600. Philadelphia, PA

Word 2010: The Basics Table of Contents THE WORD 2010 WINDOW... 2 SET UP A DOCUMENT... 3 INTRODUCING BACKSTAGE... 3 CREATE A NEW DOCUMENT...

Introduction To Microsoft Office PowerPoint Bob Booth July 2008 AP-PPT5

Excel 2007 Introduction to Macros

Easy Setup Guide for the Sony Network Camera

ECDL. European Computer Driving Licence. Database Software BCS ITQ Level 1. Syllabus Version 1.0

Handout: Word 2010 Tips and Shortcuts

3. Add and delete a cover page...7 Add a cover page... 7 Delete a cover page... 7

Word Processing programs and their uses

Step One. Step Two. Step Three USING EXPORTED DATA IN MICROSOFT ACCESS (LAST REVISED: 12/10/2013)

To Begin Customize Office

Microsoft Publisher 2010 What s New!

Outlook Quick Steps & Rules

Microsoft Office Word 2007 Training

Beginning Word. Objectives: You will-

KEYBOARD SHORTCUTS. Note: Keyboard shortcuts may be different for the same icon depending upon the SAP screen you are in.

Acrobat X Pro Accessible Forms and Interactive Documents

Windows 95. 2a. Place the pointer on Programs. Move the pointer horizontally to the right into the next window.

2010 Document Template Administration. User Guide. Document Template Administration

GOOGLE DOCS APPLICATION WORK WITH GOOGLE DOCUMENTS

Keyboard Shortcuts Instead of the Mouse NOTES

Templates and Slide Masters in PowerPoint 2003

Produced by Flinders University Centre for Educational ICT. PivotTables Excel 2010

Microsoft Excel Introduction to Microsoft Excel 2007

CORSAIR GAMING KEYBOARD SOFTWARE USER MANUAL

Creating forms in Microsoft Access 2007

Windows XP Pro: Basics 1

Microsoft Excel Understanding the Basics

PowerPoint 2013: Basic Skills

IT Services IT Training

CREATE AN ANIMATED AQUARIUM IN POWERPOINT

9/4/2012. Objectives Microsoft Word Illustrated. Unit B: Editing Documents. Objectives (continued) Cutting and Pasting Text

AFN-FixedAssets

Word 2007 WOWS of Word Office 2007 brings a whole new basket of bells and whistles for our enjoyment. The whistles turn to wows.

Reduced Quality Sample

Construction Administrators Work Smart with Excel Programming and Functions. OTEC 2014 Session 78 Robert Henry

WINDOWS 7 EXPLORE INTERNET EXPLORER 8

1. Click the File tab 2. Click "Options" 3. Click "Save" 4. In the line labeled "Default file location", browse to the desired folder 5.

Lookout Software, LLC. All rights reserved.

Microsoft Excel 2013 Step-by-Step Exercises: PivotTables and PivotCharts: Exercise 1

Microsoft Office PowerPoint Identify components of the PowerPoint window. Tutorial 1 Creating a Presentation

Working with sections in Word

Microsoft Outlook Introduction

Microsoft Office PowerPoint Creating a new presentation from a design template. Creating a new presentation from a design template

Microsoft Office 2007 Orientation Objective 1: Become acquainted with the Microsoft Office Suite 2007 Layout

Transcription:

Skill Set 4 Macros By the end of this Skill Set you should be able to: Record a Macro Run a Macro Assign a Macro Create a Multiple Action Macro Word 2007 CiA Training Ltd 2008 55

ITQ Level 3 Exercise 27 - Recording a Simple Macro A macro records keystrokes and menu selections, then plays them back exactly as they were recorded. A macro can be created so that a commonly used task can be performed, or a word, phrase or paragraph can be entered automatically. The use of macros results in the more efficient production of documents. Macros can be stored with a document, so they can be used at any time in that document, or stored with a template so they can be used at any time in any document that uses the same template. A new macro can be created easily, but great care must be taken during the recording, because each action taken is incorporated into the macro. When saving a document or template that contains macros that are to be used again, they must be saved as a Macro-enabled document or template. These have different file extensions. A.docx document becomes.docm when macros are enabled, whilst a.dotx template becomes.dotm. Macros stored with a document can only be used with that document. Macros stored with a template can be used by any document based on that template. Activity: 1. Open the Pool Times document. A macro is to be created to enter the pool's name automatically. 2. First, click after the heading and start a new line. 3. Enter the paragraph heading Introduction and press <Enter>. 4. To create the macro, display the Developer tab and click. Note: If the Developer tab is not on view, select the Office Button and Word Options. From Popular options, select to Show the Developer tab in the Ribbon. 5. Enter the Macro name as LakeView. Display the drop down list for Store macro in. The macro can be stored with the current document, the current template or the default template. Select the current document, Pool Times. Note: The macro will only be available in this document. 56 CiA Training Ltd 2008 Word 2007

6. Click OK. A Stop Recording macro button is now displayed in the Status Bar and on the Developer tab (Code group).the mouse pointer changes to a cassette, showing that the macro is now recording all actions performed. Note: While recording a macro the mouse cannot be used at certain times, for example, when moving the insertion point around within the document or selecting text, the keyboard must be used. 7. Carefully type the text: Lake View Swimming Pool. 8. Click the Stop Recording button,, to end the recording. Note: To record a macro quickly, click on the Status Bar to display the Record Macro dialog box. Click again where the was, a button to stop the macro recording is now displayed. 9. The macro is now created. To see the programming behind it, click the Macros button, ensure that LakeView is selected from the dialog box then click. Microsoft Visual Basic starts (there may be more than one macro shown). LakeView macro 10. Take a screen print and paste it into your Word document, Dummy Evidence, with a suitable description beneath. 11. Save and close Dummy Evidence, then in the Visual Basic window select File Close and Return to Microsoft Word. 12. Click the Office Button and select Save As. Save the file with the name Pool Times Macro, and a Save as type of Word Macro-Enabled Document (*.docm). 13. Leave the document open. Word 2007 CiA Training Ltd 2008 57

ITQ Level 3 Exercise 28 - Running a Macro Once a macro has been created and recorded, it can be run at any time. Activity: 1. At the end of the text Lake View Swimming Pool, type has recently been fully refurbished and we are offering new activities; these are listed below. As well as these new sessions, 2. Click the Macros button from the Developer tab. 3. From Macros in, select Pool Times Macro.docm and select LakeView from the list. 4. Click Run to insert the text again (adjust spacing if necessary). 5. Complete the sentence by typing still offers its normal swimming timetable. 6. Create a second macro, (in Pool Times Macro.docm), named PrintPage to print a single copy of the current page of the document only (select Office Button, Print, Current page, OK). 7. Run the macro to print a second copy of the page. 8. Save the document (as Pool Times Macro.dotm). 9. Click the Office Button and select Save As. Save the file with the name Pool Times, as a Word Document (*.docx). 10. Select Replace existing file when prompted. 11. There will be a warning about saving a VBA project (Macro). Read the text then click Yes to save as a macro free object. The file will be saved as Pool Times.docx with no macros stored in it. 12. Close the document. 58 CiA Training Ltd 2008 Word 2007

Exercise 29 - Assigning a Macro The Customize dialog box can be used to assign a macro to a button on a toolbar. The button can then be added to any toolbar and its appearance can also be changed. A macro can also be assigned to the keyboard, so that it can be run using a key press, or to the Menu Bar as a new menu. Activity: 1. Open the Pool Times Macro document, click the Customize Quick Access Toolbar button,, and select More Commands. Note: Depending on the security level on your computer, documents containing macros may open with a Security Warning stating that macros are disabled. To enable any macros, click the Options button on the warning, select Enable this content and click OK. 2. Display the drop down list in Choose commands from and select Macros. 3. Display the drop down list in Customize Quick Access Toolbar and select For Pool Times Macro.docm. The customisation will only apply to this document. 4. Select Project.NewMacros.LakeView and click. The macro is added to the list on the right. 5. To change the button s appearance, click the Modify button. Word 2007 CiA Training Ltd 2008 59

ITQ Level 3 6. Select from the array of symbols and enter Lake View Macro in the Display name box. Click OK, then click OK again. 7. Click OK. The new button is displayed on the Quick Access Toolbar (but only for this document). 8. Click the Customize Quick Access Toolbar button,, and select More Commands. 9. To create a keyboard shortcut for a macro, click the Customize button,. 10. Scroll down the Categories list and select Macros, then select PrintPage from the list of macros. 11. Select Pool Times Macro.docm from the Save changes in box. 12. Click in Press new shortcut key and press <Alt L>. Note: If this key press has already been assigned, try another. 13. Click Assign, Close, then click OK to close the Word Options dialog box. 14. To run the macro press <Alt L>. 15. Test the Lake View button on the Quick Access Toolbar. 16. To remove the Lake View button from the Quick Access Toolbar, right click on the button and select Remove from Quick Access Toolbar. 17. Save the document and leave it open. 60 CiA Training Ltd 2008 Word 2007

Exercise 30 - Multiple Action Macros A macro can be created to combine sequences of actions in a single command, for example to save the document and then close it. Activity: 1. Using the document Pool Times Macro, create a new macro called SaveClose, to be stored in the Pool Times Macro document only. 2. Record the following actions: Save the document using the button on the Quick Access Toolbar, then click the Office Button and select Close. Select Yes at all messages. 3. Stop recording and open the document again. Edit the new macro to view the programming code behind it. 4. Create a screen print and paste it into the Dummy Evidence document. Close the macro code window. 5. Customise the Quick Access Toolbar (for this document only) so that it includes a button ( ) to run the SaveClose macro. 6. Test the button. This will save and close the document. Word 2007 CiA Training Ltd 2008 61

ITQ Level 3 Exercise 31 - Develop Your Skills 1. Open the Toffington document. A macro is to be created to enter your name and the date in the footer. Note: If previous exercises have not been completed, the sample solution Toffington26 may be renamed as Toffington and used instead. 2. Select Record Macro from the Developer tab. Name the macro Candidate and select to store the macro in the Toffington document only. 3. Select the Insert tab and click the Footer button. Select Edit Footer. 4. Type Candidate Name: then your name, press <Tab>, type Date: and then today s date. 5. Close the Header and Footer view and then stop recording the macro. 6. Assign the macro to a button on the Quick Access Toolbar (again only for this document) and change the button icon to a Smiley Face. 7. Open the Revision Evidence document and create a suitably annotated screen print to show the programming behind the macro. 8. Create a suitably annotated screen print to show the new button on the toolbar. 9. Save the document as a Word Macro-Enabled Document (*.docm).named Toffington Macro and close all open documents. Note: In a practical application, it would be more appropriate to include a macro like the one above (and the toolbar button) to the default template so that it was available to all created documents. As this is a tuition exercise, the macro has been kept separate. 62 CiA Training Ltd 2008 Word 2007

Summary: Macros Your ITQ evidence must demonstrate the following skills: Customise menu and toolbars Automate common tasks. For example: using macros. Read through the exercises in this Skill Set to give you some ideas of how you could demonstrate these skills. Word 2007 CiA Training Ltd 2008 63