Creating Macros in Excel

Slides:



Advertisements
Similar presentations
Sensitivity Analysis A systematic way of asking “what-if” scenario questions in order to understand what outcomes could possibly occur that would effect.
Advertisements

Performing Financial What-If Analyses You have a.
© Paradigm Publishing, Inc Excel 2013 Level 2 Unit 2Managing and Integrating Data and the Excel Environment Chapter 7Automating Repetitive Tasks.
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
Templates and Styles Excel Advanced. Templates are pre- designed and formatted spreadsheets –They provide consistency of layout/structure –They.
MACROS CS1100 Computer Science and its Applications CS11001.
With Microsoft Excel 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Excel 2010.
Customizing Word Microsoft Office Word 2007 Illustrated Complete.
Macros Excel built-in functions are great but limited Macros are a means for the user to define new functions A macro is a single command that automates.
Microsoft Excel 2003 Illustrated Complete Excel and Advanced Worksheet Management Customizing.
Presenter notes: This Microsoft Excel presentation is a prepackaged solution for basic Excel training. You may use the presentation as-is or customize.
Adding Automated Functionality to Office Applications.
Excel Lesson 14 Creating and Using Macros Microsoft Office 2010 Advanced Cable / Morrison 1.
COMPREHENSIVE Excel Tutorial 10 Performing What-If Analyses.
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.
Other Features Index and table of contents Macros and VBA.
University of Delaware Information Technology User Services.
Computer Science & Engineering 2111 Data Validation and Macros 1 CSE 2111 Lecture-Data Validation and Macros.
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.
Lecture Roger Sutton CO357 Computing for Business and Accounting 13: Automation and Control (Macros and Form controls ) 1.
Advanced Excel for Finance Professionals A self study material from South Asian Management Technologies Foundation.
With Microsoft Excel 2007 Comprehensive 1e© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Excel 2007 Comprehensive.
Macros n Macros are little programs that you can create to automate particular tasks that you may want to execute more easily than having to specify all.
© 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-
Lecture Excel: Macros & Pivot Tables. Macros A macro is a series of commands that are stored and can be run whenever you need to perform the task.
1 Performing Spreadsheet What-If Analysis Applications of Spreadsheets.
Relational Lists.txt Excel can import multiple file types.txt Excel can import multiple file types.
Exploring Microsoft Office XP - Microsoft Word 2002 Chapter 71 Exploring Microsoft Word Chapter 7 The Expert User: Workgroups, Forms, Master Documents,
Intro to Excel - Session 7.31 Tutorial 7 - Session 7.3 Developing an Excel Application.
4 - 1 Chapter 4: Advanced Excel Skills Management Science: The Art of Modeling with Spreadsheets, 3e S.G. Powell K.R. Baker © John Wiley and Sons, Inc.
Information Processing Notes for beginning our Excel Unit.
Creating Macros in Excel Adding Automated Functionality to Excel & Office Applications.
Intermacs Form Download Excel Tutorial Pivot Tables, Graphic Tools, Macros By: Devin Koehl.
Excel Macros 1 Macros or, How to Automate Part of Your Spreadsheet or Worksheet.
Spreadsheets What is Excel?. Objectives 1. Identify the parts of the Excel Screen 2. Identify the functions of a spreadsheet 3. Identify how spreadsheets.
Intermacs Form Download Excel Tutorial Pivot Tables, Graphic Tools, Macros By: Devin Koehl.
Chapter 2: Excel Basics and Formatting Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name.
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.
Excel Functions. Part 1. Introduction 2 An Excel function is a formula or a procedure that is performed in the Visual Basic environment, outside the.
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.
This lesson teaches you how to enter, edit, and manipulate cells and their data,—which are the building blocks of spreadsheets. Cells and Cell Data In.
What if analysis By: Fatimah Alotaibi.
Excel Tutorial 8 Developing an Excel Application
June 17, 2009 Office 2007 Tips & Tricks.
Formulas and Functions
Exploring Excel Chapter 7 Automating Repetitive Tasks: Macros and
Excel: Macros & Pivot Tables
TDA Direct Certification
Developing an Excel Application
Microsoft Excel 101.
Microsoft Office Illustrated
Advanced Microsoft Excel
Exploring Microsoft Excel
ME 142 Engineering Computation I
Simple Spreadsheet tasks
Lesson 7 Plan a Presentation
Macro.
Lesson 1 - Automating Tasks
Chapter 6 Lesson 5.
Microsoft Excel 2007 – Level 2
Presentation transcript:

Creating Macros in Excel Adding Automated Functionality to Excel & Office Applications

Macros A macro is a series of written instructions or recorded keystrokes and mouse actions. With a single keystroke, users can play back these activities at a much faster speed than those same actions can be performed manually. Macros can help eliminate wasted time and the risk of error that typically occur when performing repetitive tasks.

Two different ways macros are created Keystroke Macros Perform a sequence of operations using keystrokes and the mouse and the application records what you are doing Writing programming code to accomplish a task. Both options use Visual Basic for Applications (VBA). The difference is how the VBA code is created

Customize Ribbon ------ Select DEVELOPER as one of the main tabs File tab Select OPTIONS

Recording 2 Macros First macro: Sum all columns Second macro Paste values into a Copy row Deletes answer row (from first step)

Recording Macros Benefits Weaknesses Quick and easy way to add automated functionality to your spreadsheet. The macro recorder simply records the keystrokes that you take or mouse actions that you perform Code is guaranteed to be free from syntax/coding errors Can serve as a starting point if you are inexperienced. Weaknesses The macro recorder does not write the most efficient code. It records actions and commands you might not need or want. May have to record macro several times due to making errors in the recording process. More chances for making errors. If changes are made to the document (add column or row), the macro may not function as intended. Not as robust Works well for basic tasks, but sometimes you want advanced functionality that recorded macros can’t make possible (button tasks)

Performing Financial What-If Analyses You have a result value you are interested in. What happens to the result if an input value changes?

Goal Seek takes the opposite approach. In its most simple form, change the input value and observe the result. Goal Seek takes the opposite approach. Here is the answer I want. What must happen for that answer to be achieved? To perform Goal Seek: In the Data Tools group on the Data tab, click the What-If Analysis button, and then click Goal Seek In the Set cell box, select the result cell, and then, in the To value box, specify its value (goal) In the By changing cell box, specify the input cell Click the OK button. The value of the input cell changes to set the value of the result cell

What happens if I change units sold? Here is the answer/goal that I want. What must happen to achieve that result?

Data Tables A data table organizes the results of several what-if analyses within a single table Insert a formula that references the input cell in the upper-left cell of the table One variable data table: specify one input cell and one or more result cells Two variable data table: specify two input cells and one result cell. In the Data Tools group on the Data tab, click the What-If Analysis button, and then click Data Table

Scenarios and Scenario Manager At most, a data table can have only 2 input cells. If you have more input cells (or several results cells), you will need to create scenarios and use the scenario manager (located in the Data tab, What-If Analysis grouping Scenario Manager enables you to create as many scenarios as you want, easily switching between the different scenarios to display the results of several what-if analyses

You can even create a scenario pivot table report to display the results from each scenario