Lecture Roger Sutton CO357 Computing for Business and Accounting 13: Automation and Control (Macros and Form controls ) 1.

Slides:



Advertisements
Similar presentations
Introduction to Excel This class is “HANDS-ON” you will need to open up an excel spreadsheet and do examples as you go along. Students will be able to.
Advertisements

Excel Vocabulary.
© Paradigm Publishing, Inc Excel 2013 Level 2 Unit 2Managing and Integrating Data and the Excel Environment Chapter 7Automating Repetitive Tasks.
 Microsoft Excel is an electronic spreadsheet.  As with a paper spreadsheet, you can use Excel to organize your data into rows and columns and to perform.
Microsoft Office XP Microsoft Excel
Overview Lesson 1. Objectives Step-by-Step: Start Excel 1.Click the Start menu, and then click All Programs. 2.On the list of programs, click Microsoft.
WORKING SMART Crystal M. Thomas Henrico County DSS (804) POSSESS Central Region Member October 31, 2007.
Chapter 4 Financial Functions, Data Tables, and Amortization Schedules
Using Macros and Visual Basic for Applications (VBA) with Excel
Tutorial 8: Developing an Excel Application
1 CA202 Spreadsheet Application Combining Data from Multiple Sources Lecture # 6.
Loading Excel Double click the Excel icon on the desktop (if you have this) OR Click on Start All Programs Microsoft Office Microsoft Office Excel 2003.
Templates and Styles Excel Advanced. Templates are pre- designed and formatted spreadsheets –They provide consistency of layout/structure –They.
Excel Tutorial 1 Getting Started with Excel
Review. Microsoft Office Excel 2013 provides powerful tools to organize, analyze, manage, and share information Locations where work is done are cells,
Objectives 1.Identify the functions of a spreadsheet 2.Identify how spreadsheets can be used. 3.Explain the difference in columns and rows. 4.Locate specific.
Working with Large Worksheets, Charting, and What-If Analysis
Excel Charts – Basic Skills Creating Charts in Excel.
Macros Tutorial Week 20. Objectives By the end of this tutorial you should understand how to: Create macros Assign macros to events Associate macros with.
Excel Web App By: Ms. Fatima Shannag.
FIRST COURSE Excel Lecture. XP 2 Introducing Excel Microsoft Office Excel 2007 (or Excel) is a computer program used to enter, analyze, and present quantitative.
Excel Lesson 14 Creating and Using Macros Microsoft Office 2010 Advanced Cable / Morrison 1.
COMPREHENSIVE Excel Tutorial 8 Developing an Excel Application.
ME 142 Engineering Computation I Macros. Key Concepts Macro Overview Recording a Macro Running a Macro Editing a Macro Using Controls.
Lecture Roger Sutton 14: Data Management Facilities 1.
LOGO Chapter V Formattings 1. LOGO Overview  Conditional formatting  Working with tables  Filtering  Sorting  Freeze panes  Pivot tables  How to.
FIRST COURSE Excel Tutorial 1 Getting Started with Excel.
Microsoft Office 2007 Excel Presented By: Steph Flatau.
XP New Perspectives on Introducing Microsoft Office XP Tutorial 1 1 Introducing Microsoft Office XP Tutorial 1.
Microsoft Excel Diane M. Coyle Spring 2009 CS 105.
Project 9 Using Visual Basic for Applications (VBA) to Customize and Automate Excel Jason C. H. Chen, Ph.D. Professor of Management Information Systems.
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-
XP Spreadsheet Presentation. XP Objectives Understand the use of spreadsheets and Excel Learn the parts of the Excel window Scroll through a worksheet.
Formulas and Advanced Features R003. AO1: Use Formulas & features in your spreadsheet Invoice sheet Absolute cell reference Macros Conditional Formatting.
European Computer Driving Licence Syllabus version 5.0 Module 4 – Spreadsheets Chapter 22 – Functions Pass ECDL5 for Office 2007 Module 4 Spreadsheets.
 Starting Excel 2003  Using Help  Workbook Management  Cursor Management  Manipulating Data  Using Formulae and Functions  Formatting Spreadsheet.
INSERT BOOK COVER 1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Office Excel 2010 by Robert Grauer, Keith.
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 WORD 2007 INTERMEDIATE/ADVANCED. CREATE A NEW STYLE BASED ON A SELECTED TEXT HOME tab > STYLES group dialog launcher > at the bottom of the.
1 Performing Spreadsheet What-If Analysis Applications of Spreadsheets.
This is the first sheet of a spreadsheet workbook. The workbook begins initially with 3 work sheets. A spreadsheet is made of columns and rows. The intersection.
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Excel 2002 Lesson 1 Introduction.
Intro to Excel - Session 7.31 Tutorial 7 - Session 7.3 Developing an Excel Application.
Automating Database Processing
CTS130 Spreadsheet Lesson 9 - Building Charts. What is a Chart? A chart is a visual display of information in a worksheet. Charts can help you make comparisons,
Microsoft Access 2010 Chapter 8 Advanced Form Techniques.
Formatting WorksheetsFormatting Worksheets Lesson 7.
Excel Web App By: Ms. Fatima Shannag.
Application Software Advanced Spreadsheets "Number crunching"
Excel Lesson 1 Microsoft Excel Basics
Spreadsheets What is Excel?. Objectives 1. Identify the parts of the Excel Screen 2. Identify the functions of a spreadsheet 3. Identify how spreadsheets.
The Excel model for information processing The Excel model is a grid of cells in which items of information are stored and processed. Any information that.
Intermacs Form Download Excel Tutorial Pivot Tables, Graphic Tools, Macros By: Devin Koehl.
Excel Spreadsheets Formatting and Functions ICS100 – Spring 2007 D. Pai.
An electronic document that stores various types of data.
1 CA202 Spreadsheet Application Automating Repetitive Tasks with Macros Lecture # 12 Dammam Community College.
Excel Chapter 3 What-If Analysis, Charting, and Working with Large Worksheets Discovering Computers & Microsoft Office 2010.
Chapter 5 Working with Multiple Worksheets and Workbooks Microsoft Excel 2013.
CONDITIONAL FORMATTING AND CUSTOM NUMBER FORMATS LEC 5 1.
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.
XP Practical OpenOffice.org Chapter 5 1 Creating a Worksheet.
Chapter 8 Working with Trendlines, PivotTable Reports, PivotChart Reports, and Slicers Microsoft Excel 2013.
Excel Tutorial 8 Developing an Excel Application
Microsoft Excel 101.
Chapter 7 Advanced Form Techniques
Lesson 1 - Automating Tasks
Microsoft Excel 2007 – Level 2
Presentation transcript:

Lecture Roger Sutton CO357 Computing for Business and Accounting 13: Automation and Control (Macros and Form controls ) 1

CO357 Computing for Business and Accounting Automation Within a spreadsheet automation can be performed a variety of ways: E.g. 1.By the spreadsheet’s re-calculation on changing a cell’s contents - making use of the interdependence of the cells 2.Using the If-function – values appear in cells depending on the value of some other cell or formula 3.Using conditional formatting – can be used to suppress displays and hence output 4.Using macros 2

CO357 Computing for Business and Accounting Movement between Worksheets Generally a user moves to another sheet by clicking the required sheet tag in the left hand corner above the task bar. However, when software has been created for other people to use such tags, tool bars, row and columns headers, etc. are removed. (see Excel Options|Advanced|Display options Movement between sheets may then be achieved using hyperlinks or buttons. 3 By hyperlink, a label is entered, then Hyperlink selected from Insert|Links to reveal the adjacent dialog : Selecting ‘Place in this document’ allows the required worksheet to be identified.

CO357 Computing for Business and Accounting Use of IF-function The IF function can be used to detect when cells contain particular values or no value and then perform the required action or display in response. Conditional formatting can be used to determine how results are displayed if at all. 4 co357lec08

CO357 Computing for Business and Accounting Macros A macro is a set of instructions or commands that has been recorded so that the same sequence of actions can be reproduced comparatively easily. A macro is used to automate tasks that are:  repetitive  time-consuming, or  error-prone In Excel, macros are expressed in Visual Basic or VBA (Visual Basic for Applications) and saved in a special macro worksheet. To create and use macros it is necessary to ensure the Developer tag is shown in the ribbon – this is achieved by ticking the appropriate checkbox in Popular of Excel Options. 5

CO357 Computing for Business and Accounting Creating the Macro Macros may be run either from  a special button,  a menu choice, or using  a short-cut key. A macro is created by demonstrating what is required so that a record can be made. It is recommended that you run through the intended operation a few times to ensure that all steps are included and then write these steps down on paper. 6 Record Macro from Developer |Code reveals: Enter a name and letter for shortcut key. Once OK is clicked all subsequent key strokes are recorded until the Stop recording button in the Developer |Code panel is clicked.

CO357 Computing for Business and Accounting Example: creating a pie chart 1.Click Chart icon from Insert | Charts 2.Select Pie from 2-D options 3.Click Select Data from Design|Data 4.Identify chart data range: C5:C9 5.Edit Series1 6.Identify series name: B2 7.Edit the Horizontal Axis Labels, then supply labels B5:B9. 8.Click Ok twice 9.Click Chart Labels from Layout | Labels 10. Select Centre, then More Data Label Options 11. Tick Percentage and then deselect Value (in that order!) 12.Make cell A1 active and then click Stop Recording from Developer|Code 7 co357lec08

CO357 Computing for Business and Accounting To operate macro from a button The set up is a two-stage operation: 1.Create the button: The button labelling can be changed by holding down the Ctrl key and clicking the button. Highlight the existing label and type in that required. 8 Select Button from Developer|Controls|Insert|Form Controls Drag mouse pointer to cover cells to be occupied by the button and release. This gives rise to the dialog: 2.Assign the macro The dialog provides an opportunity to assign an existing macro or record a new one

CO357 Computing for Business and Accounting Form Controls 1.Spinner (Scroll bar) Often an input value may be one of a numerical series and it is intended that the user be allowed to examine as the input value is increased or decreased. 9 co357lec08 Spinner: Repayment period can be varied by 1 from 1 to 18 months

CO357 Computing for Business and Accounting Spinner –cont’d The Spinner control is obtained from Developer|Insert|Forms Controls 10  Drag mouse pointer over cells to be occupied by spinner and release to obtain:  Use right click and select Format Control to reveal:  Specify minimum and maximum values, and the incremental change  Indicate the ‘link cell’, i.e. the cell to contain the resulting value. co357lec08

CO357 Computing for Business and Accounting Combo box 2. The Combo box allows a value to be selected from a column of possible values: 11 Combo box: ‘Amount borrowed’ is selected from a restricted column of values

CO357 Computing for Business and Accounting Combo box – cont’d Once the control has been introduced onto the worksheet it is formatted using the following dialog: =index( $O$7:$O$26, $O$6) 12  Specify the range that contains possible values.  Indicate where the index of the chosen value will be stored.  Indicate how many lines at a time will be shown in the list.  To retrieve the chosen value requires the formula:

CO357 Computing for Business and Accounting Radio (option) button 3.The radio button operates like a button in that it may be assigned a macro and this is invoked when the button is clicked. Radio buttons may also be grouped together using the ‘Group‘ control such that when one button is selected, all the others in the group are deselected. 13 Using Format control, a link cell is identified to hold the count/index of the option button selected (The count is assigned when the button is created).

CO357 Computing for Business and Accounting Check box Like other buttons, ticking a checkbox can initiate an assigned macro. Further, whereas radio buttons allow one option to be chosen from a group, several check boxes enable a combination of choices to be identified and acted upon. 14 Using Format control, a link cell is identified to hold the Boolean value TRUE if the box is checked otherwise FALSE.