1 CA202 Spreadsheet Application Automating Repetitive Tasks with Macros Lecture # 12 Dammam Community College.

Slides:



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

© 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.
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.
Templates and Styles Excel Advanced. Templates are pre- designed and formatted spreadsheets –They provide consistency of layout/structure –They.
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.
With Microsoft Excel 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Excel 2010.
Advanced Microsoft Word Hosted by Jared Hoffman Topics Keyboard Shortcuts Customizing Toolbars and Menus Auto Format & Auto Correct Tabs Inserting Pictures.
Customizing Word Microsoft Office Word 2007 Illustrated Complete.
1 Chapter 4 The Fundamentals of VBA, Macros, and Command Bars.
Using the Visual Basic Editor Visual Basic for Applications 1.
Instructions for Enabling PowerPoint to Use Drag and Drop Macro 1.Open PowerPoint 2.Click Tools 3.Click Options 4.Click Security 5.Click Macro Security.
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.
1 CA203 Presentation Application Customizing PowerPoint Lecture # 15.
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.
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.
Chapter 9 Macros, Navigation Forms, PivotTables, and PivotCharts
Microsoft Visual Basic 2005 ENRICHMENT CHAPTER Visual Studio Tools for Office.
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.
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.
NetTech Solutions Using Advanced Tools Lesson 5. NetTech Solutions Objectives Use Slide Finder Use the Format Painter Understand the purpose of 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-
Microsoft Excel Macros & Excel Solver (IENG490)
Introduction to VBA MGMI Aug What is VBA? VBA = Visual Basic for Application Excel’s powerful built-in programming language An event-driven.
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.
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.
Spreadsheets in Finance and Forecasting Presentation 9 Macros.
Automating Database Processing Chapter 6. Chapter Introduction Design and implement user-friendly menu – Called navigation form Macros – Automate repetitive.
Microsoft Visual Basic 2005 ENRICHMENT CHAPTER Visual Studio Tools for Office.
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.
OCC Network Drives  H:\  P:\ 
Automating Database Processing
Chapter 9 Macros And Visual Basic For Applications.
Creating Macros in Excel Adding Automated Functionality to Excel & Office Applications.
A lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft® Excel 2013.
Excel Macros 1 Macros or, How to Automate Part of Your Spreadsheet or Worksheet.
Chapter 10 Using Macros, Controls and Visual Basic for Applications (VBA) with Excel Microsoft Excel 2013.
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.
G042 - Lecture 15 Excel Macros Mr C Johnston ICT Teacher
Customizing Menus and Toolbars CHAPTER 12 Customizing Menus and Toolbars.
Macros in Excel Using VBA Time Required – 5 hours.
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.
Chapter 11 Enhancing an Online Form and Using Macros Microsoft Word 2013.
Excel Tutorial 8 Developing an Excel Application
June 17, 2009 Office 2007 Tips & Tricks.
Excel: Macros & Pivot Tables
Microsoft Excel 2003 Illustrated Complete
Introducing VBA Macros
Macro.
Microsoft Excel 2007 – Level 2
Presentation transcript:

1 CA202 Spreadsheet Application Automating Repetitive Tasks with Macros Lecture # 12 Dammam Community College

2 Objectives In this chapter you will learn to: ✔ Open and run macros. ✔ Create and modify macros. ✔ Create toolbars and menus to hold macros. ✔ Run a macro when a workbook is opened.

3 Introducing Macros Some sequences involve many steps and take time to accomplish by hand. Rather than doing by hand every time, you can create a macro, to do repeated things. Alt+F8 to bring Macro dialog box or click Tools  Macro  Macros…

4 Introducing Macros If you have trouble running macros, you can click Tools  Macro  Security… Click on Medium option button and click OK

5 To See How Macro Works To see how the macro works, you can open the Macro dialog box, click the name of the macro you want to examine, and then click Step Into.

6 To See How Macro Works To execute an instruction, you press F8. The highlight moves to the next instruction, and your worksheet changes to reflect the action ExerciseMacrosView

7 Creating and Modifying Macros Once you have planned your process, you can create a macro by Clicking: –Tools  Macro  Record New Macro. Type the name of macro click OK. The Stop Recording toolbar appears. ExerciseRecordMacros

8 Creating a Toolbar to Hold Macros Run a macro from toolbar makes your worksheets much easier to use, especially for people with less experience. To create a toolbar Click Tools  Customize.

9 Creating a Toolbar to Hold Macros Once you have created the new toolbar, you can assign your macros to it. Click Commands tab –Two items will appear in the Commands list: Custom Menu Item. Custom Button. –To add a button to your new toolbar, drag the Custom Button item to the toolbar.

10 Creating a Toolbar to Hold Macros Right Click on toolbar and assign the Macro

11 Creating a Toolbar to Hold Macros To Delete a toolbar click Tool  Customize Click on Toolbar tab Select the Toolbar Click on Delete Click OK to confirm deletion

12 Creating a Toolbar to Hold Macros You can change the image. Right Click on Image Select Change Image Button

13 Creating a Menu to Hold Macros Click Tool  Customize Click Command  New Menu Drag New Menu to desired spot Right click and change the Name of menu ExerciseCustomMenu

14 Running a Macro When a Workbook Is Opened You can run your macro by hand, or from a toolbar button, or a menu. You can run a macro automatically even when you are opening a work book. Whenever Excel finds a macro with a name starting with Auto_ (Auto followed by an underscore), it runs the macro when the workbook to which it is attached is opened. ExerciseRunOnOpen

15 Chapter 12 Key Points Macros are handy tools you can use to perform repetitive tasks quickly, such as inserting blocks of text. You don’t have to be a programmer to use macros; you can record your actions and have Excel save them as a macro. Always keep control over whether you want to enable macros in a particular workbook by setting your security level to Medium or High. If you’re curious about what a macro looks like, you can display it in the Visual Basic Editor. If you know a little VBA, or if you just want to experiment, feel free to modify the macro code and see what happens. You can create toolbar buttons or menu items that, when clicked, will run a macro. Starting a macro name with Auto_ tells Excel to run the macro when it opens the workbook to which the macro is attached.