A lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft® Excel 2013.

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
Tutorial 7: Developing an Excel Application
Developing an Excel Application
Tutorial 8: Developing an Excel Application
1 CA202 Spreadsheet Application Combining Data from Multiple Sources Lecture # 6.
© 2002 ComputerPREP, Inc. All rights reserved. Excel 2000: Customizing Excel and Using Macros.
Copyright © 2008 Pearson Prentice Hall. All rights reserved Copyright © 2008 Prentice-Hall. All rights reserved. Committed to Shaping the Next.
XP New Perspectives on Microsoft Excel 2003, Second Edition- Tutorial 8 1 Microsoft Office Excel 2003 Tutorial 8 – Developing an Excel Application.
THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved. 1 Lesson Objectives Lesson 5 objectives Use a template to.
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.
Tutorial 12: Enhancing Excel with Visual Basic for Applications
With Microsoft Excel 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Excel 2010.
1 ADVANCED MICROSOFT POWERPOINT Lesson 5 – Using Advanced Text Features Microsoft Office 2003: Advanced.
Customizing Word Microsoft Office Word 2007 Illustrated Complete.
Using the Visual Basic Editor Visual Basic for Applications 1.
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.
Module 3 Productivity Programs Common Features and Commands Microsoft Office 2007.
Spreadsheet. Objectives Create a new blank workbook. Create a new blank workbook. Identify user interface elements that you can use to accomplish basic.
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.
Microsoft Office Word 2013 Core Microsoft Office Word 2013 Core Courseware # 3250 Lesson 8: Using Productivity Tools.
University of Delaware Information Technology User Services.
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.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. M I C R O S O F T ® Preparing for Electronic Distribution Lesson 14.
1 CS 106 Computing Fundamentals II Chapter 17 “Introduction To VBA” Herbert G. Mayer, PSU CS status 6/30/2013 Initial content copied verbatim from CS 106.
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,
© 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.
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-
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.
INSERT BOOK COVER 1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Office Excel 2010 by Robert Grauer, Keith.
1 ADVANCED MICROSOFT WORD Lesson 16 – Customizing Features Microsoft Office 2003: Advanced.
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 Microsoft Office Excel Copyright © 2008 Pearson Prentice Hall. All rights reserved
A lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. a lesson approach Microsoft® Excel 2010 © 2011 The McGraw-Hill Companies,
© 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.
Advanced Lesson 5: Advanced Data Management Excel can import data, or bring it in from other sources and file formats. Importing data is useful because.
Intro to Excel - Session 7.31 Tutorial 7 - Session 7.3 Developing an Excel Application.
OCC Network Drives  H:\  P:\ 
Chapter 9 Macros And Visual Basic For Applications.
Access Lesson 11 Creating and Running Macros Microsoft Office 2010 Advanced Cable / Morrison 1.
A lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. a lesson approach Microsoft® Excel 2010 © 2011 The McGraw-Hill Companies,
Chapter 23. Copyright 2003, Paradigm Publishing Inc. CHAPTER 23 BACKNEXTEND 23-2 LINKS TO OBJECTIVES Record, Run, Pause, and Delete Macros Record, Run,
A lesson approach Microsoft® Excel a lesson approach 2 Monitor workbook security. 1 Create a scenario. 2 Set conditional formatting. 3 Manage scenarios.
Chapter 10 Using Macros, Controls and Visual Basic for Applications (VBA) with Excel Microsoft Excel 2013.
A lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft® Excel 2013.
A lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. a lesson approach Microsoft® Word 2010 © 2011 The McGraw-Hill Companies,
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.
COMPREHENSIVE Excel Tutorial 12 Expanding Excel with Visual Basic for Applications.
Chapter 11 Enhancing an Online Form and Using Macros Microsoft Word 2013.
Excel Tutorial 8 Developing an Excel Application
Outline In this module, the following topics will be covered:
Microsoft Office Illustrated
Microsoft Excel 2003 Illustrated Complete
Introducing VBA Macros
Exploring Microsoft Excel
Lesson 1 - Automating Tasks
Microsoft Office Excel 2003
Microsoft Excel 2007 – Level 2
Presentation transcript:

a lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft® Excel 2013

a lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. 2

a lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. 3

a lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved.  A macro is a sequence of commands and keystrokes that automate a routine task.  Excel macros are recorded in Visual Basic for Applications programming language (VBA).

a lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved.  Macros are stored in macro-enabled workbooks.  The file name extension for a macro-enabled workbook is xlsm.  You can set how macro-enabled workbooks are opened in the Trust Center.  Macros must be enabled to be used.

a lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. Viruses and other malware can easily be hidden in macros. You can set your computer to notify you when a workbook has a macro.

a lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. A security warning alerts you when you open a workbook that has macros.

a lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. The Macros button is on the View and the Developer tabs. The Macro dialog box lists existing macro names.

a lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. 9

a lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. Macros can be edited in the Visual Basic Editor. Code window Project Explorer Properties window

a lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. The first lines in a macro include the macro name and comment lines. A subroutine macro is run from within the workbook. Comment lines are preceded by an apostrophe and shown in green. A keyboard shortcut may also be indicated.

a lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved.  Spaces and punctuation are part of the macro code and should not be changed.  Simple format and text changes are relatively easy to determine.  You must resave the workbook to save edits made in the Visual Basic Editor.

a lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. You can change the font size by keying a new size. Add text by clicking to place an insertion point and keying the new data.

a lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. You can insert your own comment lines in a macro. Key an apostrophe to precede the line.

a lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. Choose File and Print from the Visual Basic Editor menu to print macro code.

a lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. 16

a lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved.  Macros are recorded and saved in a macro-enabled workbook.  You first name a macro and then perform the actual steps for the task.  A macro is usable whenever the workbook is open.

a lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. The Macros button is on the View command tab. The Code group is on the Developer command tab. There is a Record Macro button in the status bar.

a lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved.  Macros names must begin with a letter.  Macro names cannot include spaces or special characters.  All macro shortcuts include [Ctrl].  You should use uppercase letters for keyboard shortcuts.

a lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. In the Record Macro dialog box, you can name the macro, assign a shortcut, and key a description.

a lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved.  Special-purpose macros are used with one workbook and should be stored in that workbook.  General-purpose macros can be stored in a workbook that contains only macros. Anytime this workbook is open, any other open workbook can use its macros.

a lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. While you are recording a macro, the status bar shows a Stop Recording button. Click this button when you complete the steps. There is a Stop Recording button on the Developer command tab.

a lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved.  Macros are recorded with absolute or relative references.  The Relative References button is an on/off toggle.  With relative references, the macro records pointer movement commands.  You must position the pointer before running the macro.

a lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved.  With absolute references, the macro records ending cell addresses.  Pointer movement is not recorded.  The pointer can be anywhere when the macro is run.

a lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. 25

a lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved.  A form control in an object that directs tasks or commands.  A button is a form control.  A button, when clicked, runs the macro that is assigned to it.  Use the Insert Controls button on the Developer command tab.

a lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. Draw the button control on the worksheet.

a lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved.

a lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. 29

a lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved.  A macro workbook contains only macros.  Open this workbook each time you start Excel.  Use its macros in any other open workbook.  You can set a workbook to open each time you start Excel in the General group on the Advanced tab in Excel Options.

a lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. Macros can include format commands set from the dialog box or the Ribbon.

a lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. Macros are stored in modules in the Visual Basic Editor. A module can have several macros.

a lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. You can create a documentation sheet for a macro workbook. Run the macro to displays its results and key a description.

a lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. You can copy macro code from the Visual Basic Editor into a worksheet as documentation.

a lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. 35

a lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved.  General-purpose macros that should be available at all times should be stored in the Personal Macro Workbook, Personal.xlsb, in the XLStart folder.  The Personal Macro Workbook opens as a hidden workbook each time you start Excel.

a lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. The Personal Macro workbook is hidden. You can unhide it for editing if necessary.

a lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved.  Personal.xlsb can be edited in the Visual Basic Editor.  The path to Personal.xlsb in Windows 7 is C:\Users\UserName\AppData\Roaming\Microsoft\Excel\XLSTART  Some of these folders may be hidden.

a lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved.  A macro is a sequence of commands and keystrokes, converted to Visual Basic for Applications (VBA) code as you record them.  In the Trust Center, you can set how a workbook with macros opens.  You must enable macros to run them.

a lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved.  You can run a macro from the View tab, from the Developer tab, with a keyboard shortcut, or from a form control.  Use the Visual Basic Editor to review and edit macro code.  Press [Alt]+[F11] to open the Visual Basic Editor.  You can print macro code from the Visual Basic Editor.

a lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved.  Subroutine macros start with the word “Sub” followed by the macro name.  Subroutine macros end with “End Sub.”  Macros are stored in workbooks.  Delete a macro if you no longer need it.

a lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved.  Macro names must begin with a letter and cannot use spaces or special characters.  Keyboard shortcuts should include [Shift] so that you do not override Excel’s own shortcuts.  You can record macros with relative or absolute cell references.

a lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved.  Use the Button form control on the Developer tab to draw a button shape.  You can assign a macro to a button.  A macro workbook can include only macros and documentation.  A macro workbook can be hidden so that it is not mistakenly used as a regular workbook.