ME 142 Engineering Computation I Macros. Key Concepts Macro Overview Recording a Macro Running a Macro Editing a Macro Using Controls.

Slides:



Advertisements
Similar presentations
Introduction to Macro Introduction to Visual Basic for Application Recording a Macro Looking at the code of Recorded Macro.
Advertisements

Excel Vocabulary.
1 After completing this lesson, you will be able to: Insert a table. Navigate and select cells within a table. Merge table cells. Insert and delete columns.
© Paradigm Publishing, Inc Excel 2013 Level 2 Unit 2Managing and Integrating Data and the Excel Environment Chapter 7Automating Repetitive Tasks.
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
1 CA202 Spreadsheet Application Combining Data from Multiple Sources Lecture # 6.
XP New Perspectives on Microsoft Excel 2003, Second Edition- Tutorial 8 1 Microsoft Office Excel 2003 Tutorial 8 – Developing an Excel Application.
Introduction to Excel Chapter 2 Excel Fundamentals Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
MACROS CS1100 Computer Science and its Applications CS11001.
PRIMARY, SECONDARY & QUANTITATIVE RESEARCH TASK HYPERLINK APPLICATION PROCEDURE 1.
Customizing Word Microsoft Office Word 2007 Illustrated Complete.
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.
MS-Excel XP Lesson 8. Inserting and Formatting a Comment 1.Select cell or cell range 2.Insert menu, comment menu item 3.Type message to comment 4.Minimize.
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.
1 Macros Presented by Maria G. Martinez. 2 What's a macro?  Macro - set of computer instructions that you can record and associate with a shortcut key.
Lecture Roger Sutton CO357 Computing for Business and Accounting 13: Automation and Control (Macros and Form controls ) 1.
Copyright 2007, Paradigm Publishing Inc. Word 2007 Chapter 7 BACKNEXTEND 7-1 LINKS TO OBJECTIVES Create, Edit, and Format a Table Create, Edit, and Format.
Excel Worksheet Basics Terminology Navigation The Ribbon 1 Nolan Tomboulian Tomboulian.wikispaces.com.
ME 142 Engineering Computation I Variables, Equations & Functions Introduction to Basic Programming Language.
Project 9 Using Visual Basic for Applications (VBA) to Customize and Automate Excel Jason C. H. Chen, Ph.D. Professor of Management Information Systems.
© 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-
Microsoft Excel Macros & Excel Solver (IENG490)
© 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.
Introducing Excel Jason C. H. Chen, Ph.D. Professor of Management Information Systems School of Business Administration Gonzaga University Spokane, WA.
Chapter 12: Recording Macros Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name.
2. Recording a Macro. Macro Recording Select Record Macro from the Macro file menu and the dialog box opposite will appear Your macro will require a name.
ME 142 Engineering Computation I Macros. Key Concepts Macro Overview Recording a Macro Running a Macro Editing a Macro.
Intro to Excel - Session 7.31 Tutorial 7 - Session 7.3 Developing an Excel Application.
ME 142 Engineering Computation I Custom Dialog Boxes.
LINKS TO OBJECTIVES Multiple Worksheets Multiple Worksheets Move, Copy and Paste Cells Move, Copy and Paste Cells Split into Windows Freeze Panes Range.
Basic Editing Lesson 2.
Copyright 2003, Paradigm Publishing Inc. CHAPTER 5 BACKNEXTEND 5-1 LINKS TO OBJECTIVES Move, Copy, and Paste Cells Move, Copy, and Paste Cells Multiple.
Excel Screen Slide 1 Column Row Cell Formula bar Column heading Row heading Worksheet tab.
Return to the FastCourse Excel 2007 Level 1 book page Lesson 1: Exploring Excel 2007.
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 © 2011 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft® Excel 2013.
Lesson 14: Exploring Excel Learning Objectives After studying this lesson, you will be able to:  Explain ways Excel can help your productivity.
Lesson 1: Exploring Excel Learning Objectives After studying this lesson, you will be able to:  Explain ways Excel can help your productivity.
Introduction to Microsoft Excel Macros COE 201- Computer Proficiency.
Chapter 2: Excel Basics and Formatting Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name.
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.
Microsoft Office 2007 Excel Chapter 9 Part 4: Comparing and merging Workbooks.
A lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft® Excel 2013.
Microsoft Excel Microsoft Excel 2013 is a spreadsheet application in the Microsoft Office Suite. A spreadsheet is an accounting program for the.
G042 - Lecture 15 Excel Macros Mr C Johnston ICT Teacher
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.
 The clipboard is a temporary storage area  The cut or copy commands place information on the CLIPBOARD  There are two types of clipboards: – System.
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
Microsoft Excel 2003 Illustrated Complete
Exploring Microsoft Excel
ME 142 Engineering Computation I
Lesson 1 - Automating Tasks
Microsoft Excel 2007 – Level 2
Presentation transcript:

ME 142 Engineering Computation I Macros

Key Concepts Macro Overview Recording a Macro Running a Macro Editing a Macro Using Controls

Macro Overview

 A macro is a short program or set of recorded keystrokes  Stored as VBA program  Great for repetitive tasks  Can be edited  Great way to learn new VBA functions

Recording a Macro

 Recording of a macros can be launched from the View and Developer tabs or the lower left of the spreadsheet window

Recording a Macro  Select Use Relative References button, if desired, prior to recording macro

Recording a Macro  Prior to recording the macro, a dialog box is displayed  Note in particular: Shortcut key Storage location

Ending a Macro Recording  Use the Stop Recording button on from the View or Developer tabs or the lower left of the spreadsheet window

Running a Macro

 Click on Macro from the View or Developer ribbons to list available macros  May also use previously assigned shortcut key combination to launch macro

Editing a Macro

 Edit a Macro as you would any VBA program  Alternately may launch editor by clicking on Macro in the View or Developer ribbons and selecting Edit

Example Problem  Convert a temperature from F to C Both F and C temperatures should appear in adjacent cells when the macro is complete

Using Controls

 Form Controls can be used to facilitiate getting input or running a VBA program  Example: Button – facilitate running VBA program

Using Controls Continued  Forms controls can also be used in Excel spreadsheets and custom dialog boxes  Today we’ll look at their use directly in a spreadsheet  Later will see how they can be used in custom dialog boxes

Using Controls Continued  Forms controls are available on the Developer tab, under Insert

Spin Button  Used to increase/decrease the value of a cell  May link directly to a cell  After placing control, right click to format control

Scroll Bar  Used to increase/decrease the value of a cell  May position either horizontally or vertically by dragging in that direction  After placing control, right click to format control

Review Questions

ReviewQuestion In Excel, a macro is always created as a: A.VBA Sub B.VBA Function C.VBA Macro D.May be either A or B E.None of the above

Homework Help ‘n Hints