With Microsoft Excel 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Excel 2010.

Slides:



Advertisements
Similar presentations
Chapter 1 Getting Started with Access Databases. Objectives Identify Good Database Design Create a Table and Define Fields in a New Blank Database Change.
Advertisements

© Paradigm Publishing, Inc Excel 2013 Level 2 Unit 2Managing and Integrating Data and the Excel Environment Chapter 7Automating Repetitive Tasks.
GO! with Microsoft® Excel e
With Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
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.
Objectives Understand the software development lifecycle Perform calculations Use decision structures Perform data validation Use logical operators Use.
With Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. by Mary Anne Poatsy, Keith Mulbery, Eric Cameron, Jason Davidson, Rebecca Lawson,
1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. by Mary Anne Poatsy, Keith Mulbery, Lynn Hogan, Amy Rutledge, Eric Cameron, Cyndi.
GO! with Microsoft® Excel 2010
With Microsoft ® Excel 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Excel.
With Microsoft Excel 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Excel 2010.
With Microsoft ® Office 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Office.
1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. Chapter 12 Templates, Styles, and Macros by Mary Anne Poatsy, Keith Mulbery, Eric.
Customizing Word Microsoft Office Word 2007 Illustrated Complete.
With Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
With Microsoft Access 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
© 2013 Pearson Education, Inc. Publishing as Prentice Hall1 with Microsoft ® Office for Mac 2011 Chapter 2 Using Tables and Templates to Create Resumes.
Adding Automated Functionality to Office Applications.
1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. by Mary Anne Poatsy, Keith Mulbery, Eric Cameron, Jason Davidson, Rebecca Lawson,
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.
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.
Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall.
With Windows 7 Comprehensive© 2012 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Windows 7 Comprehensive.
With Microsoft Windows 7© 2012 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Windows 7.
GO! All In One 2/E By: Shelley Gaskin, Nancy Graviett, Debra Geoghan Chapter 5 Using Internet Explorer, Microsoft Cloud Computing, and OneNote Copyright.
© 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.
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-
INSERT BOOK COVER 1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Office Access 2010 by Robert Grauer, Keith.
GO! All In One 2/E By: Shelley Gaskin, Nancy Graviett, Debra Geoghan Chapter 3 Introduction to Microsoft Office 2013 Features Copyright © 2015 Pearson.
INSERT BOOK COVER 1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Office Excel 2010 by Robert Grauer, Keith.
1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. Access Module 1 Workshop 1 The Four Main Database Objects Series Editor Amy Kinser.
INSERT BOOK COVER 1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Office Access 2010 by Robert Grauer, Keith.
OCC Network Drives  H:\  P:\ 
GO! All In One 2/E By: Shelley Gaskin, Nancy Graviett, Debra Geoghan Chapter 13 Creating and Editing Presentations with Microsoft PowerPoint 2013 Copyright.
Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. 1 by Mary Anne Poatsy, Keith Mulbery, Lynn Hogan, Amy Rutledge, Cyndi Krebs, Eric.
GO! with Office 2013 Volume 1 By: Shelley Gaskin, Alicia Vargas, and Carolyn McLellan PowerPoint Chapter 2 Formatting PowerPoint 2 Presentations.
1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Office Excel 2010 by Robert Grauer, Keith Mulbery, and Mary.
GO! with Office 2013 Volume 1 By: Shelley Gaskin, Alicia Vargas, and Carolyn McLellan Word Chapter 1 Creating Documents with Microsoft Word 2013.
INSERT BOOK COVER 1Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Getting Started with VBA for Microsoft Office 2010 by.
A lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft® Excel 2013.
With Microsoft Excel 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Excel 2010.
INSERT BOOK COVER 1Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Getting Started with VBA for Microsoft Office 2010 by.
Chapter 10 Using Macros, Controls and Visual Basic for Applications (VBA) with Excel Microsoft Excel 2013.
Chapter 11 Enhancing an Online Form and Using Macros Microsoft Word 2013.
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall. 1 Skills for Success with Office 2010 Vol. 1, 2e PowerPoint Lecture to Accompany.
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall. 1 Skills for Success with Microsoft ® Office 2007 PowerPoint Lecture to Accompany.
GO! with Office 2013 Volume 1 By: Shelley Gaskin, Alicia Vargas, and Carolyn McLellan Introduction to Microsoft Office 2013 Features.
A lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft® Excel 2013.
© 2013 Pearson Education, Inc. Publishing as Prentice Hall1 with Microsoft ® Office for Mac 2011 Common Features Using the Common Features of Microsoft.
GO! with Office 2013 Volume 1 By: Shelley Gaskin, Alicia Vargas, and Carolyn McLellan Word Chapter 2 Using Tables and Templates to Create Resumes and Cover.
GO! with Office 2013 Volume 1 By: Shelley Gaskin, Alicia Vargas, and Carolyn McLellan PowerPoint Chapter 1 Introducing Microsoft PowerPoint 2013.
GO! with Office 2013 Volume 1 By: Shelley Gaskin, Alicia Vargas, and Carolyn McLellan Excel Chapter 1 Creating a Worksheet and Charting Data.
Computers Are Your Future Tenth Edition Spotlight 5: Microsoft Office Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall1.
Chapter 10 Using Macros, Controls and Visual Basic for Applications (VBA) with Excel Microsoft Excel 2013.
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall. 1 Skills for Success with Office 2010 Vol. 1, 2e PowerPoint Lecture to Accompany.
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.
Excel Tutorial 8 Developing an Excel Application
Microsoft Office Illustrated
Microsoft Excel 2003 Illustrated Complete
GO! with Microsoft® Access e
Exploring Microsoft® Word® 2016 Series Editor Mary Anne Poatsy
Exploring Microsoft Excel
Presentation transcript:

with Microsoft Excel 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Excel 2010 Chapter 9 Using Macros and Visual Basic for Applications

with Microsoft Excel 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall2 Objectives Record a Macro Assign a Macro to a Button on the Quick Access Toolbar Modify a Macro Write a VBA Procedure to Use an ActiveX Control Restore Initial Settings

with Microsoft Excel 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall3 Record a Macro Macro –An action or a set of actions that automate tasks by grouping a series of commands into a single command –Recorded in Visual Basic for Applications (VBA) programming language VBA is the language used to write computer programs within the Microsoft Windows environment

with Microsoft Excel 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall4 Record a Macro To work with macros: –Add the Developer tab to the Ribbon, which displays the commands –Select a macro security setting to enable macros when using Excel –Save the workbook that includes macros as an Excel Macro-Enabled Workbook file type

with Microsoft Excel 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall5 Record a Macro Adding the Developer Tab to the Ribbon

with Microsoft Excel 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall6 Record a Macro Developer tab displays on the ribbon Code group contains commands to work macros

with Microsoft Excel 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall7 Record a Macro To enable macros in the workbook: set the security level on the computer to allow the option of enabling the macros

with Microsoft Excel 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall8 Record a Macro Macro Settings and Their Effects

with Microsoft Excel 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall9 Record a Macro Excel provides safeguards against viruses transmitted by macros. Digital signature –Certifies macros shared with others –Secure stamp of authentication

with Microsoft Excel 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall10 Record a Macro Macro recorder –Records all steps required by the macro –Will not record navigation on the Ribbon, –Records in VBA programming language

with Microsoft Excel 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall11 Record a Macro

with Microsoft Excel 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall12 Record a Macro Event − The action that causes the macro to run − Might be a combination of keystrokes or the click of a button

with Microsoft Excel 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall13 Modify a Macro Module –Programming code written in VBA that records a new macro –The place where the VBA code is stored –Consists of procedures A unit of computer code that performs some type action

with Microsoft Excel 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall14 Modify a Macro Visual Basic Editor window—where the module containing the Visual Basic code can be viewed

with Microsoft Excel 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall15 Modify a Macro

with Microsoft Excel 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall16 Modify a Macro Sub procedure—abbreviated sub –A set of instructions that accomplishes a specific task –Sub indicates the beginning of the Sub procedure. –End Sub indicates the end of the sub procedure.

with Microsoft Excel 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall17 Modify a Macro The word With notes the beginning of a VBA construct—an instruction that enables the macro to perform multiple operations on a single object.

with Microsoft Excel 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall18 Write a VBA Procedure to Use an ActiveX Control Write a procedure that will insert an ActiveX control into a form A procedure is a named sequence of statements in a computer program that performs a task.

with Microsoft Excel 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall19 Write a VBA Procedure to Use an ActiveX Control An ActiveX control is a graphic object –Such as a check box or a button that you place on a form –Can be used to Display or enter data To perform an action To make the form easier to read

with Microsoft Excel 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall20 Write a VBA Procedure to Use an ActiveX Control ActiveX controls –Especially useful for forms that individuals complete online –Can control different events that occur when a control is used A check box is a type of ActiveX control that is used when filling in a form

with Microsoft Excel 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall21 Write a VBA Procedure to Use an ActiveX Control Embed—insert something from one program to another program –ActiveX controls not part of Excel –May be added Design Mode—enables working with ActiveX controls

with Microsoft Excel 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall22 Write a VBA Procedure to Use an ActiveX Control Each ActiveX control has a set of properties—characteristics—that can be changed.

with Microsoft Excel 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall23 Write a VBA Procedure to Use an ActiveX Control

with Microsoft Excel 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall24 Write a VBA Procedure to Use an ActiveX Control Comments –Display in green –Preceded by an apostrophe (‘) –Document the procedure with comments –Does not affect the procedure

with Microsoft Excel 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall25 Write a VBA Procedure to Use an ActiveX Control

with Microsoft Excel 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall26 Write a VBA Procedure to Use an ActiveX Control

with Microsoft Excel 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall27 Write a VBA Procedure to Use an ActiveX Control A VBA procedure can be modified in the same manner as a VBA code. To add a second message box to the existing code use an If, Then Else statement.

with Microsoft Excel 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall28 Write a VBA Procedure to Use an ActiveX Control

with Microsoft Excel 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall29 Write a VBA Procedure to Use an ActiveX Control If an error message displays in the message box, click Debug to return to the Visual Basic Editor window. Correct the error highlighted in yellow. On the file menu, click Close and Return to Microsoft Excel, try the procedure again.

with Microsoft Excel 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall30 Objectives Covered Record a Macro Assign a Macro to a Button on the Quick Access Toolbar Modify a Macro Write a VBA Procedure to Use an ActiveX Control Restore Initial Settings

with Microsoft Excel 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall31 All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior written permission of the publisher. Printed in the United States of America. Copyright © 2011 Pearson Education, Inc. Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall