ENGG1811 Computing for Engineers Week 9 Dialogues and Forms Numerical Integration
|
|
- Erik Horn
- 5 years ago
- Views:
Transcription
1 ENGG1811 Computing for Engineers Week 9 Dialogues and Forms Numerical Integration ENGG1811 UNSW, CRICOS Provider No: 00098G W9 slide 1
2 References & Info Chapra (Part 2 of ENGG1811 Text) Topic 21 (chapter 15) Custom Dialogue Boxes This week s schedule Tue, Wed am: new material Wed pm: worked example ENGG1811 UNSW, CRICOS Provider No: 00098G W9 slide 2
3 Forms and Controls VBA has access to the full window library 1. Buttons or similar Controls (window elements) can be placed on sheet. 2. Dialogues are provided for standard interaction such as opening files, choosing colours. Can be called from VBA. 3. Forms (windows with controls placed by the designer) can be embedded in document. Each active element can trigger actions through VBA event procedures ENGG1811 UNSW, CRICOS Provider No: 00098G W9 slide 3
4 1. Command Buttons Simplest scheme: command buttons Show control tool box Developer tab Insert 2003: View Toolbars Control Toolbox Select command button from bottom group (ActiveX Controls, arrowed) Click and drag on sheet Right-click*, select Properties Change name (cmddemo), caption, font, other properties Right-click again, select View Code VBE allows changes to properties and event handler: cmddemo_click( ) Exit design mode, button becomes active * or pick from Controls on the ribbon Exit Design Mode Command Button ENGG1811 UNSW, CRICOS Provider No: 00098G W9 slide 4
5 Example: Colour Swatch Lay out a new sheet with named ranges ColourRegion (4 cells) and IndexBox (1 cell) Show the control box, add a button called cmdchangecolour labelled Next Colour Name box ColourRegion IndexBox ENGG1811 UNSW, CRICOS Provider No: 00098G W9 slide 5
6 Colour Swatch Event Procedure In Design Mode, double click button. Opens up VBA associated with this worksheet, including events for the command button. Sheet needs one variable, changed by the event procedure: Const NUM_COLOURS = 56 ' Excel VBA standard (2003+ compatible) Dim collast As Integer ' last colour index shown (or 0) Private Sub cmdchangecolour_click() collast = 1 + collast Mod NUM_COLOURS With ActiveSheet.Range("ColourRegion").Interior.ColorIndex = collast.range("indexbox").value = collast End With End Sub ENGG1811 UNSW, CRICOS Provider No: 00098G W9 slide 6
7 Colour Swatch Demo See sheet ColourSwatch on the week 9 Lecture demo spreadsheet. This example is simple enough for all VBA code to be included with the sheet itself Often cmdbuttonxyz_click() just calls a subprogram in a module. ENGG1811 UNSW, CRICOS Provider No: 00098G W9 slide 7
8 Properties Window Edit characteristics of any static object View by name or grouped by category Accessible from VBE or from control via Properties on shortcut menu or ribbon Units are points (1/72 inch, approx 28 pts per cm), 1 decimal place ENGG1811 UNSW, CRICOS Provider No: 00098G W9 slide 8
9 2. Built-in Dialogues You ve seen MsgBox before, now use its value: reply = MsgBox("Root found, look for more?", _ vbyesno, "Newton") If reply = vbyes Then MsgBox "Out of jelly beans!", vbcritical ' OK only Select Case MsgBox("I'm feeling tired, can I quit?", _ vbabortretryignore, "Ennui") Case vbabort: Application.Exit Case vbignore: ' do nothing (keep going) Case vbretry: ' keep going anyway End Select Type msgbox to VBA Help for codes ENGG1811 UNSW, CRICOS Provider No: 00098G W9 slide 9
10 Input box To issue a prompt and obtain a single string from the user you can use the InputBox function Dim strname As String strname = InputBox("What is Your name?") If strname = "" Then Else End If MsgBox "Silent type, eh?" MsgBox "Hello, " & strname Occasionally useful, but large data sets should be on the active sheet, and smaller sets could have customised forms (soon) ENGG1811 UNSW, CRICOS Provider No: 00098G W9 slide 10
11 Other Builtin Dialogues Getting the user to select a file name is a common requirement: GetOpenFileName("Text Files (*.txt), *.txt") We would use this if we covered reading and writing to text files in ENGG1811 (but we don t) ENGG1811 UNSW, CRICOS Provider No: 00098G W9 slide 11
12 3. User Forms A user form is an independent window containing controls placed by the designer In the VBE, select Insert - UserForm Resize. From the toolbox, select and place controls. Each is given a default name. For our first example, add three labels, a text box and a command button ENGG1811 UNSW, CRICOS Provider No: 00098G W9 slide 12
13 Toolbox Controls Control Pfx Tool Graphic Main Properties* Text box txt Value Label lbl Caption Command button cmd Caption List box lst Value, ControlSource Combo box cbo Value, ControlSource Option button opt Value (Boolean) Check box chk Value Spin button spn Value, Min, Max Image img Picture *All have Name, Width, Height, Left, Top, Visible, TabIndex etc ENGG1811 UNSW, CRICOS Provider No: 00098G W9 slide 13
14 Control Properties Identity Content Can change most attributes of each control (select with circled dropdown) in the Properties window. Important ones arrowed. See also Categorized view. Text attributes Position Behaviour ENGG1811 UNSW, CRICOS Provider No: 00098G W9 slide 14
15 Initiating Action After designing the form, what then? All controls detect and manage events such as frmgame_activate() rdogender_change() cmdguess_click() cmbaction_change() txtinput_afterupdate() Private Sub lbl1_mousemove(byval Button As Integer, _ ByVal Shift As Integer, ByVal X As Single) Each control s properties are exposed through the object model, so VBA can use and modify them (especially displayed values) Must consider what should happen for each relevant event: event-driven programming Within event handlers normal algorithms apply ENGG1811 UNSW, CRICOS Provider No: 00098G W9 slide 15
16 An Example Let s continue with the form we re building, it s for an implementation of the children s High- Low guessing game program picks a number between 1 and n (say 100) user guesses, is told high/low/correct user wins if guessed within limited number of tries Can you identify the optimal strategy for the user (it s certainly not random guessing!)? ENGG1811 UNSW, CRICOS Provider No: 00098G W9 slide 16
17 High-Low Form Rename and reposition elements, add captions in 10pt font, adjust widths: Added sample text in 14pt to confirm suitability of size. lblresult is blank, content will be assigned by VBA ENGG1811 UNSW, CRICOS Provider No: 00098G W9 slide 17
18 Events What (meaningful) events can occur? 1. Form is activated 2. Form is closed (via the window bar) 3. Reset button is pressed 4. User enters text 1 and 3 are the same; 2 isn t handled Hence only two need to be managed. Event procedures: cmdreset_click() txtguess_afterupdate() why not txtguess_change()? UserForm_Activate() calls cmdreset_click ENGG1811 UNSW, CRICOS Provider No: 00098G W9 slide 18
19 Document Structure Designs and VBA code are stored in three places in the document: Worksheet has VBA code to initiate form frmhilo has form layout, plus VBA code to handle all events Module1 (rename it HiLo_module) has state variables and all algorithm processing code ENGG1811 UNSW, CRICOS Provider No: 00098G W9 slide 19
20 Startup We want the form to appear when the sheet is selected (activated) Use the worksheet activation event to position the form and activate it (Show method): ' Display the HiLo form, offset into Excel's window Private Sub Worksheet_Activate() frmhilo.left = Application.Top frmhilo.top = Application.Left frmhilo.show End Sub ENGG1811 UNSW, CRICOS Provider No: 00098G W9 slide 20
21 Pseudocode for Reset: Event Responses think of a number set guess count to 0 clear lblresult.caption and txtguess.value Pseudocode for User entry: fetch typed string (from txtguess.value) if not a sensible guess then issue error message (assign to lblresult.caption) elseif correctly guessed then issue win message elseif guess limit reached then issue loss message else increment guess count issue keep-trying message dubious logic, allowing the software to be fooled much as viruses exploit logical errors in production software, such as passing a 100,000-character URL to a program that assumes nobody would ever do that! ENGG1811 UNSW, CRICOS Provider No: 00098G W9 slide 21
22 State Variables State is maintained in the visible elements and in two variables: target number number of guesses These variables and additional procedures are stored in a new module (HiLo_module) Event procedures should contain minimal code: they call procedures in HiLo_module to update state Must use fully qualified names: HiLo_module.PickRandomTarget HiLo_module.ResetGuessCount HiLo_module.Guess(strGuess) ENGG1811 UNSW, CRICOS Provider No: 00098G W9 slide 22
23 Observation Most of program consists of validating what the user typed Exercise: add a checkbox labelled Show limits If checked (chkshowlimits.checked), display the current range of possible values based on what the player has guessed makes the game easier, especially if there were to be a time limit on each guess adds two controls (labels for the limits) and more VBA in return for richer functionality even fancier: two rectangular frames, one filled to show progress ENGG1811 UNSW, CRICOS Provider No: 00098G W9 slide 23
24 Debugging Aim is to produce VBA procedures that perform exactly as intended Errors can be introduced at any stage design (poor understanding of problem) pseudocode (poor understanding of solution) implementation (poor understanding of VBA, or typos) VB Editor picks up gross typo-type errors only On execution, could get run-time error such as divide by zero run-time error such as invalid object method normal termination and correct result normal termination and incorrect result Different tests may produce different outcomes ENGG1811 UNSW, CRICOS Provider No: 00098G W9 slide 24
25 Debugging VB interpreter has full control over the execution of your program If we get a run-time error, VBE shows current execution position Can view simple variable values to help infer error If result is wrong, it may be possible to work out the error, but often you need to know things like: What was the value of this variable at this point in the execution? How many times did this loop execute? When was this variable changed? Did this part of the procedure get executed? VBE can help you get answers to these questions ENGG1811 UNSW, CRICOS Provider No: 00098G W9 slide 25
26 Error Handling Programs can have errors of several kinds 1. Syntax and semantic errors due to typos or poor understanding of the language 2. Logical errors that produce a different outcome from the expected one 3. Run-time errors The VB Editor can catch most of (1), and the programmer will use various techniques including debugging to deal with (2) (3) normally stops the interpreter ENGG1811 UNSW, CRICOS Provider No: 00098G W9 slide 26
27 Types of Run-time Error a) Impossible calculations such as divide by zero b) Exceeding data limits (integer overflow etc) c) Array usage errors (index out of bounds) d) Improper object usage (misspelled method or property, semantic error) e) Missing or malformed data (no collection membership test, so this can happen easily) (a) and (c) indicate logical errors or insufficient data validation (b) may be a logical error, or wrong type used (d) is a semantic error (e) is a condition that can be detected and managed ENGG1811 UNSW, CRICOS Provider No: 00098G W9 slide 27
28 Trapping Errors (Advanced topic) On Error statement controls error handling On Error GoTo label On Error GoTo 0 On Error Resume Next If an error occurs, transfer control to the labelled statement Restore default handler (terminate execution on error) Ignore error and continue with statement following the error Error handlers are labelled statements local to a subprogram, often at the end, and preceded by Exit Sub statements ENGG1811 UNSW, CRICOS Provider No: 00098G W9 slide 28
29 Worked Example: Numeric Integration Numerical integration approximates the solution to a definite integral that may not have a closed form by using a series of shapes to model the area under the curve Simplest of these is the Trapezoidal Rule, which uses thin vertical slices with a straight line at the top (forming adjacent trapeziums) a f (x) b Integral of f (x) from a to b is approximated by the sum of the areas inside the red trapeziums ENGG1811 UNSW, CRICOS Provider No: 00098G W10 slide 31
30 Trapezoidal Rule, theory References: Wikipedia, many other web refs Animation: zoidal/trapezoidalaa.html After doing the maths for n equally spaced panels, the formula reduces to b a f ( x) dx f ( x ) 2 f ( x1 ) 2 f ( x2) 2 f ( xn 1) 2 f ( x 0 n ) Panel width b a n Twice the middle values where xi a i( b a) / n a i* End-points counted once only ENGG1811 UNSW, CRICOS Provider No: 00098G W10 slide 32
31 Trapezoidal Rule, pseudocode We can easily convert this to pseudocode: set sum to f (a) + f (b) set delta to the panel width For p = To add to sum Next p area = ENGG1811 UNSW, CRICOS Provider No: 00098G W10 slide 33
32 Trapezoidal Rule, implementation Function TrapArea(a As Double, b As Double, _ n As Integer) As Double Limitations: for this quick example, we will represent the function to be integrated as a VBA function called directly from TrapArea. It is possible to specify it as a formula on the sheet, which is easier for end users ENGG1811 UNSW, CRICOS Provider No: 00098G W10 slide 34
33 Summary Controls can be placed directly on the sheet to add interactivity between sheet and VBA Built-in dialogues are powerful but not universally available Forms provide more control over user interface Form programming focuses on events Debugging techniques include state display using Debug.Print state inspection after error or breakpoint single stepping, watch expressions careful code reviews Error handling regains control after unexpected program state transitions ENGG1811 UNSW, CRICOS Provider No: 00098G W9 slide 35
This Week. Trapezoidal Rule, theory. Warmup Example: Numeric Integration. Trapezoidal Rule, pseudocode. Trapezoidal Rule, implementation
This Week ENGG8 Computing for Engineers Week 9 Recursion, External Application Interfacing Monday: numeric integration example, then first part of the material Wednesday 9am: rest of the new material Wednesday
More informationExcel & Visual Basic for Applications (VBA)
Class meeting #18 Monday, Oct. 26 th GEEN 1300 Introduction to Engineering Computing Excel & Visual Basic for Applications (VBA) user interfaces o on-sheet buttons o InputBox and MsgBox functions o userforms
More informationENGG1811 Computing for Engineers Chapra (Part 2 of ENGG1811 Text) Topic 10 (chapter 3) Macro Recorder. Examples
References ENGG1811 Computing for Engineers Chapra (Part 2 of ENGG1811 Text) Topic 10 (chapter 3) Macro Recorder Week 8 Objects and Collections; Using the Macro Recorder; Shapes ENGG1811 VBA Reference
More informationMICROSOFT EXCEL 2000 LEVEL 5 VBA PROGRAMMING INTRODUCTION
MICROSOFT EXCEL 2000 LEVEL 5 VBA PROGRAMMING INTRODUCTION Lesson 1 - Recording Macros Excel 2000: Level 5 (VBA Programming) Student Edition LESSON 1 - RECORDING MACROS... 4 Working with Visual Basic Applications...
More informationAdvanced Excel. Click Computer if required, then click Browse.
Advanced Excel 1. Using the Application 1.1. Working with spreadsheets 1.1.1 Open a spreadsheet application. Click the Start button. Select All Programs. Click Microsoft Excel 2013. 1.1.1 Close a spreadsheet
More informationReferences. Parameters revisited. Reference Parameters. Example: Swapping values. Named Arguments
References ENGG1811 Computing for Engineers Week 8 Objects and Collections; Using the Macro Recorder; Shapes Chapra (Part 2 of ENGG1811 Text) Topic 10 (chapter 3) Macro Recorder ENGG1811 UNSW, CRICOS Provider
More informationENGG1811 Computing for Engineers Chapra (Part 2 of ENGG1811 Text) Topic 10 (chapter 3) Macro Recorder. Examples
References ENGG1811 Computing for Engineers Chapra (Part 2 of ENGG1811 Text) Topic 10 (chapter 3) Macro Recorder Week 8 Objects and Collections; Using the Macro Recorder; Shapes Note: there is very limited
More informationvariables programming statements
1 VB PROGRAMMERS GUIDE LESSON 1 File: VbGuideL1.doc Date Started: May 24, 2002 Last Update: Dec 27, 2002 ISBN: 0-9730824-9-6 Version: 0.0 INTRODUCTION TO VB PROGRAMMING VB stands for Visual Basic. Visual
More information6/14/2010. VBA program units: Subroutines and Functions. Functions: Examples: Examples:
VBA program units: Subroutines and Functions Subs: a chunk of VBA code that can be executed by running it from Excel, from the VBE, or by being called by another VBA subprogram can be created with the
More informationIntroduction... 1 Part I: Getting Started with Excel VBA Programming Part II: How VBA Works with Excel... 31
Contents at a Glance Introduction... 1 Part I: Getting Started with Excel VBA Programming... 9 Chapter 1: What Is VBA?...11 Chapter 2: Jumping Right In...21 Part II: How VBA Works with Excel... 31 Chapter
More informationThis chapter is intended to take you through the basic steps of using the Visual Basic
CHAPTER 1 The Basics This chapter is intended to take you through the basic steps of using the Visual Basic Editor window and writing a simple piece of VBA code. It will show you how to use the Visual
More informationLas Vegas, Nevada, December 3 6, Kevin Vandecar. Speaker Name:
Las Vegas, Nevada, December 3 6, 2002 Speaker Name: Kevin Vandecar Course Title: Introduction to Visual Basic Course ID: CP11-3 Session Overview: Introduction to Visual Basic programming is a beginning
More informationKEYWORDS DDE GETOBJECT PATHNAME CLASS VB EDITOR WITHEVENTS HMI 1.0 TYPE LIBRARY HMI.TAG
Document Number: IX_APP00113 File Name: SpreadsheetLinking.doc Date: January 22, 2003 Product: InteractX Designer Application Note Associated Project: GetObjectDemo KEYWORDS DDE GETOBJECT PATHNAME CLASS
More informationMicrosoft Excel 2013: Part 3 More on Formatting Cells And Worksheet Basics. To apply number formatting:
Microsoft Excel 2013: Part 3 More on Formatting Cells And Worksheet Basics Formatting text and numbers In Excel, you can apply specific formatting for text and numbers instead of displaying all cell content
More informationExcel Programming with VBA (Macro Programming) 24 hours Getting Started
Excel Programming with VBA (Macro Programming) 24 hours Getting Started Introducing Visual Basic for Applications Displaying the Developer Tab in the Ribbon Recording a Macro Saving a Macro-Enabled Workbook
More informationCreating a Dynamo with VBA Scripts
Creating a Dynamo with VBA Scripts Creating a Dynamo with VBA 1 Table of Contents 1. CREATING A DYNAMO WITH VBA... 3 1.1 NAMING CONVENTIONS FOR DYNAMO OBJECTS...3 1.2 CREATING A DYNAMO...4 1.3 DESIGNING
More informationAccess Forms Masterclass 5 Create Dynamic Titles for Your Forms
Access Forms Masterclass 5 Create Dynamic Titles for Your Forms Published: 13 September 2018 Author: Martin Green Screenshots: Access 2016, Windows 10 For Access Versions: 2007, 2010, 2013, 2016 Add a
More informationVisual basic tutorial problems, developed by Dr. Clement,
EXCEL Visual Basic Tutorial Problems (Version January 20, 2009) Dr. Prabhakar Clement Arthur H. Feagin Distinguished Chair Professor Department of Civil Engineering, Auburn University Home page: http://www.eng.auburn.edu/users/clemept/
More informationIntroduction to Excel 2013
Introduction to Excel 2013 Copyright 2014, Software Application Training, West Chester University. A member of the Pennsylvania State Systems of Higher Education. No portion of this document may be reproduced
More informationUnderstanding the MsgBox command in Visual Basic
Understanding the MsgBox command in Visual Basic This VB2008 tutorial explains how to use the MsgBox function in Visual Basic. This also works for VBS MsgBox. The MsgBox function displays a message in
More informationNew Perspectives on Microsoft Excel Module 1: Getting Started with Excel
New Perspectives on Microsoft Excel 2016 Module 1: Getting Started with Excel 1 Objectives, Part 1 Open and close a workbook Navigate through a workbook and worksheet Select cells and ranges Plan and create
More informationGOOGLE APPS. If you have difficulty using this program, please contact IT Personnel by phone at
: GOOGLE APPS Application: Usage: Program Link: Contact: is an electronic collaboration tool. As needed by any staff member http://www.google.com or http://drive.google.com If you have difficulty using
More informationIntroduction to Microsoft Office PowerPoint 2010
Introduction to Microsoft Office PowerPoint 2010 TABLE OF CONTENTS Open PowerPoint 2010... 1 About the Editing Screen... 1 Create a Title Slide... 6 Save Your Presentation... 6 Create a New Slide... 7
More informationBASIC EXCEL SYLLABUS Section 1: Getting Started Section 2: Working with Worksheet Section 3: Administration Section 4: Data Handling & Manipulation
BASIC EXCEL SYLLABUS Section 1: Getting Started Unit 1.1 - Excel Introduction Unit 1.2 - The Excel Interface Unit 1.3 - Basic Navigation and Entering Data Unit 1.4 - Shortcut Keys Section 2: Working with
More informationDATA 301 Introduction to Data Analytics Microsoft Excel VBA. Dr. Ramon Lawrence University of British Columbia Okanagan
DATA 301 Introduction to Data Analytics Microsoft Excel VBA Dr. Ramon Lawrence University of British Columbia Okanagan ramon.lawrence@ubc.ca DATA 301: Data Analytics (2) Why Microsoft Excel Visual Basic
More informationIntroduction to Microsoft Excel
Chapter A spreadsheet is a computer program that turns the computer into a very powerful calculator. Headings and comments can be entered along with detailed formulas. The spreadsheet screen is divided
More informationExcel 2007 Fundamentals
Excel 2007 Fundamentals Introduction The aim of this document is to introduce some basic techniques for using Excel to enter data, perform calculations and produce simple charts based on that information.
More informationSkill Set 3. Formulas
Skill Set 3 Formulas By the end of this Skill Set you should be able to: Create Simple Formulas Understand Totals and Subtotals Use Brackets Select Cells with the Mouse to Create Formulas Calculate Percentages
More informationExcel 2016 Basics for Windows
Excel 2016 Basics for Windows Excel 2016 Basics for Windows Training Objective To learn the tools and features to get started using Excel 2016 more efficiently and effectively. What you can expect to learn
More informationExtending the Unit Converter
Extending the Unit Converter You wrote a unit converter previously that converted the values in selected cells from degrees Celsius to degrees Fahrenheit. You could write separate macros to do different
More informationMicrosoft Excel 2010 Handout
Microsoft Excel 2010 Handout Excel is an electronic spreadsheet program you can use to enter and organize data, and perform a wide variety of number crunching tasks. Excel helps you organize and track
More informationStart Visual Basic. Session 1. The User Interface Form (I/II) The Visual Basic Programming Environment. The Tool Box (I/II)
Session 1 Start Visual Basic Use the Visual Basic programming environment Understand Essential Visual Basic menu commands and programming procedure Change Property setting Use Online Help and Exit Visual
More informationIntroducing Microsoft Office Specialist Excel Module 1. Adobe Captivate Wednesday, May 11, 2016
Slide 1 - Introducing Microsoft Office Specialist Excel 2013 Introducing Microsoft Office Specialist Excel 2013 Module 1 Page 1 of 25 Slide 2 - Lesson Objectives Lesson Objectives Understand what Microsoft
More informationLaboratory 1. Part 1: Introduction to Spreadsheets
Laboratory 1 Part 1: Introduction to Spreadsheets By the end of this laboratory session you should be familiar with: Navigating around a worksheet. Naming sheets and cells. Formatting. The use of formulae.
More informationWEEK NO. 12 MICROSOFT EXCEL 2007
WEEK NO. 12 MICROSOFT EXCEL 2007 LESSONS OVERVIEW: GOODBYE CALCULATORS, HELLO SPREADSHEET! 1. The Excel Environment 2. Starting A Workbook 3. Modifying Columns, Rows, & Cells 4. Working with Worksheets
More informationOutline. Debugging. In Class Exercise Solution. Review If Else If. Immediate Program Errors. Function Test Example
Debugging Larry Caretto Mechanical Engineering 209 Computer Programming for Mechanical Engineers February 16, 2017 Outline Review choice statements Finding and correcting program errors Debugging toolbar
More informationUsing Microsoft Excel
Using Microsoft Excel Excel contains numerous tools that are intended to meet a wide range of requirements. Some of the more specialised tools are useful to people in certain situations while others have
More informationMicrosoft Excel 2016 Level 1
Microsoft Excel 2016 Level 1 One Day Course Course Description You have basic computer skills such as using a mouse, navigating through windows, and surfing the Internet. You have also used paper-based
More informationExcel Tips. Contents. By Dick Evans
Excel Tips By Dick Evans Contents Pasting Data into an Excel Worksheet... 2 Divide by Zero Errors... 2 Creating a Dropdown List... 2 Using the Built In Dropdown List... 3 Entering Data with Forms... 4
More informationAdvanced Financial Modeling Macros. EduPristine
Advanced Financial Modeling Macros EduPristine www.edupristine.com/ca Agenda Introduction to Macros & Advanced Application Building in Excel Introduction and context Key Concepts in Macros Macros as recorded
More informationMICROSOFT EXCEL BIS 202. Lesson 1. Prepared By: Amna Alshurooqi Hajar Alshurooqi
MICROSOFT EXCEL Prepared By: Amna Alshurooqi Hajar Alshurooqi Lesson 1 BIS 202 1. INTRODUCTION Microsoft Excel is a spreadsheet application used to perform financial calculations, statistical analysis,
More informationExcel 2016 Basics for Mac
Excel 2016 Basics for Mac Excel 2016 Basics for Mac Training Objective To learn the tools and features to get started using Excel 2016 more efficiently and effectively. What you can expect to learn from
More informationThe American University in Cairo. Academic Computing Services. Excel prepared by. Maha Amer
The American University in Cairo Excel 2000 prepared by Maha Amer Spring 2001 Table of Contents: Opening the Excel Program Creating, Opening and Saving Excel Worksheets Sheet Structure Formatting Text
More informationADD AND NAME WORKSHEETS
1 INTERMEDIATE EXCEL While its primary function is to be a number cruncher, Excel is a versatile program that is used in a variety of ways. Because it easily organizes, manages, and displays information,
More informationCreating an Excel resource
Excel Mobile Excel Mobile is a Microsoft application similar to Excel, but designed to run on handhelds. This mobile version of Excel is a spreadsheet application that allows you to manipulate numbers,
More informationExercise 1.1 A First NetLogo Session Turtle commands and properties
Exercise 1.1 A First NetLogo Session NetLogo is an interpreted language meaning you can type commands directly into a command line and see the results. In order to introduce NetLogo we will first type
More informationFull file at Excel Chapter 2 - Formulas, Functions, Formatting, and Web Queries
Excel Chapter 2 - Formulas, Functions, Formatting, and Web Queries MULTIPLE CHOICE 1. To start a new line in a cell, press after each line, except for the last line, which is completed by clicking the
More informationd2vbaref.doc Page 1 of 22 05/11/02 14:21
Database Design 2 1. VBA or Macros?... 2 1.1 Advantages of VBA:... 2 1.2 When to use macros... 3 1.3 From here...... 3 2. A simple event procedure... 4 2.1 The code explained... 4 2.2 How does the error
More informationENGG1811 Computing for Engineers Week 10 Recursion, External Application Interfacing
ENGG1811 Computing for Engineers Week 10 Recursion, External Application Interfacing ENGG1811 UNSW, CRICOS Provider No: 00098G W10 slide 1 This Week Wednesday am: Will include discussion about assignment
More informationCREATING ACCESSIBLE SPREADSHEETS IN MICROSOFT EXCEL 2010/13 (WINDOWS) & 2011 (MAC)
CREATING ACCESSIBLE SPREADSHEETS IN MICROSOFT EXCEL 2010/13 (WINDOWS) & 2011 (MAC) Screen readers and Excel Users who are blind rely on software called a screen reader to interact with spreadsheets. Screen
More informationStatus Bar: Right click on the Status Bar to add or remove features.
Excel 2013 Quick Start Guide The Excel Window File Tab: Click to access actions like Print, Save As, etc. Also to set Excel options. Ribbon: Logically organizes actions onto Tabs, Groups, and Buttons to
More informationMicrosoft Excel Chapter 1. Creating a Worksheet and an Embedded Chart
Microsoft Excel 2010 Chapter 1 Creating a Worksheet and an Embedded Chart Objectives Describe the Excel worksheet Enter text and numbers Use the Sum button to sum a range of cells Copy the contents of
More informationCOPYRIGHTED MATERIAL. Making Excel More Efficient
Making Excel More Efficient If you find yourself spending a major part of your day working with Excel, you can make those chores go faster and so make your overall work life more productive by making Excel
More informationReferences. Arrays. Default array bounds. Array example. Array usage. Shepherd, pp (Arrays) Shepherd, Chapters 12, 13
ENGG1811 UNSW, CRICOS Provider No: 00098G W7 slide 1 References ENGG1811 Computing for Engineers Week 7 Arrays, Objects and Collections; Using the Macro Recorder Shepherd, pp.20-22 (Arrays) Shepherd, Chapters
More informationEXCEL 2007 GETTING STARTED
EXCEL 2007 GETTING STARTED TODAY S DESTINATION Quick Access Toolbar Customize it! Office Button Click Excel Options BREAK DOWN OF TABS & RIBBON Tab Name Contains Information relating to Contains the following
More informationCopyright. Trademarks Attachmate Corporation. All rights reserved. USA Patents Pending. WRQ ReflectionVisual Basic User Guide
PROGRAMMING WITH REFLECTION: VISUAL BASIC USER GUIDE WINDOWS XP WINDOWS 2000 WINDOWS SERVER 2003 WINDOWS 2000 SERVER WINDOWS TERMINAL SERVER CITRIX METAFRAME CITRIX METRAFRAME XP ENGLISH Copyright 1994-2006
More informationAgenda. First Example 24/09/2009 INTRODUCTION TO VBA PROGRAMMING. First Example. The world s simplest calculator...
INTRODUCTION TO VBA PROGRAMMING LESSON2 dario.bonino@polito.it Agenda First Example Simple Calculator First Example The world s simplest calculator... 1 Simple Calculator We want to design and implement
More informationExcel VBA. Microsoft Excel is an extremely powerful tool that you can use to manipulate, analyze, and present data.
Excel VBA WHAT IS VBA AND WHY WE USE IT Microsoft Excel is an extremely powerful tool that you can use to manipulate, analyze, and present data. Sometimes though, despite the rich set of features in the
More informationIntroduction to Microsoft Excel 2010 Quick Reference Sheet
Spreadsheet What is a spreadsheet? How is Excel 2010 different from previous versions? A grid of rows and columns that help to organize, summarize and calculate data. Microsoft Excel 2010 is built on the
More informationMicrosoft Excel 2007
Learning computers is Show ezy Microsoft Excel 2007 301 Excel screen, toolbars, views, sheets, and uses for Excel 2005-8 Steve Slisar 2005-8 COPYRIGHT: The copyright for this publication is owned by Steve
More informationEXCEL BASICS: MICROSOFT OFFICE 2010
EXCEL BASICS: MICROSOFT OFFICE 2010 GETTING STARTED PAGE 02 Prerequisites What You Will Learn USING MICROSOFT EXCEL PAGE 03 Opening Microsoft Excel Microsoft Excel Features Keyboard Review Pointer Shapes
More informationMicrosoft Excel Microsoft Excel
Excel 101 Microsoft Excel is a spreadsheet program that can be used to organize data, perform calculations, and create charts and graphs. Spreadsheets or graphs created with Microsoft Excel can be imported
More informationExcel Level 1
Excel 2016 - Level 1 Tell Me Assistant The Tell Me Assistant, which is new to all Office 2016 applications, allows users to search words, or phrases, about what they want to do in Excel. The Tell Me Assistant
More informationCreating a Spreadsheet by Using Excel
The Excel window...40 Viewing worksheets...41 Entering data...41 Change the cell data format...42 Select cells...42 Move or copy cells...43 Delete or clear cells...43 Enter a series...44 Find or replace
More informationAn InputBox( ) function will display an input Box window where the user can enter a value or a text. The format is
InputBox( ) Function An InputBox( ) function will display an input Box window where the user can enter a value or a text. The format is A = InputBox ( Question or Phrase, Window Title, ) Example1: Integer:
More informationdownload instant at
CHAPTER 1 - LAB SESSION INTRODUCTION TO EXCEL INTRODUCTION: This lab session is designed to introduce you to the statistical aspects of Microsoft Excel. During this session you will learn how to enter
More informationObjective: Class Activities
Objective: A Pivot Table is way to present information in a report format. The idea is that you can click drop down lists and change the data that is being displayed. Students will learn how to group data
More informationVBA Collections A Group of Similar Objects that Share Common Properties, Methods and
VBA AND MACROS VBA is a major division of the stand-alone Visual Basic programming language. It is integrated into Microsoft Office applications. It is the macro language of Microsoft Office Suite. Previously
More informationExcel 2010 Charts - Intermediate Excel 2010 Series The University of Akron. Table of Contents COURSE OVERVIEW... 2
Table of Contents COURSE OVERVIEW... 2 DISCUSSION... 2 COURSE OBJECTIVES... 2 COURSE TOPICS... 2 LESSON 1: MODIFY CHART ELEMENTS... 3 DISCUSSION... 3 FORMAT A CHART ELEMENT... 4 WORK WITH DATA SERIES...
More informationMicrosoft Access 2010
Microsoft Access 2010 Chapter 1 Databases and Database Objects: An Introduction Objectives Design a database to satisfy a collection of requirements Describe the features of the Access window Create a
More informationMicrosoft Excel 2007
Microsoft Excel 2007 1 Excel is Microsoft s Spreadsheet program. Spreadsheets are often used as a method of displaying and manipulating groups of data in an effective manner. It was originally created
More informationIntroduction to Excel
Office Button, Tabs and Ribbons Office Button The File menu selection located in the upper left corner in previous versions of Excel has been replaced with the Office Button in Excel 2007. Clicking on
More informationComputer Training Centre University College Cork. Excel 2016 Level 1
Computer Training Centre University College Cork Excel 2016 Level 1 Table of Contents Introduction... 1 Opening Excel... 1 Using Windows 8... 1 Using Windows 10... 1 Getting Started with Excel 2016...
More informationUsing Microsoft Access
Using Microsoft Access USING MICROSOFT ACCESS 1 Interfaces 2 Basic Macros 2 Exercise 1. Creating a Test Macro 2 Exercise 2. Creating a Macro with Multiple Steps 3 Exercise 3. Using Sub Macros 5 Expressions
More informationWorking with Excel CHAPTER 1
CHAPTER 1 Working with Excel You use Microsoft Excel to create spreadsheets, which are documents that enable you to manipulate numbers and formulas to quickly create powerful mathematical, financial, and
More informationMs excel. The Microsoft Office Button. The Quick Access Toolbar
Ms excel MS Excel is electronic spreadsheet software. In This software we can do any type of Calculation & inserting any table, data and making chart and graphs etc. the File of excel is called workbook.
More informationIntermediate Excel 2003
Intermediate Excel 2003 Introduction The aim of this document is to introduce some techniques for manipulating data within Excel, including sorting, filtering and how to customise the charts you create.
More informationExcel 2013 Intermediate
Excel 2013 Intermediate Quick Access Toolbar... 1 Customizing Excel... 2 Keyboard Shortcuts... 2 Navigating the Spreadsheet... 2 Status Bar... 3 Worksheets... 3 Group Column/Row Adjusments... 4 Hiding
More informationEXCEL BASICS: MICROSOFT OFFICE 2007
EXCEL BASICS: MICROSOFT OFFICE 2007 GETTING STARTED PAGE 02 Prerequisites What You Will Learn USING MICROSOFT EXCEL PAGE 03 Opening Microsoft Excel Microsoft Excel Features Keyboard Review Pointer Shapes
More informationWorking with Excel involves two basic tasks: building a spreadsheet and then manipulating the
Working with Excel You use Microsoft Excel to create spreadsheets, which are documents that enable you to manipulate numbers and formulas to create powerful mathematical, financial, and statistical models
More informationTable of Contents. Word. Using the mouse wheel 39 Moving the insertion point using the keyboard 40 Resume reading 41
Table of Contents iii Table of Contents Word Starting Word What is word processing? 2 Starting Word 2 Exploring the Start screen 4 Creating a blank document 4 Exploring the Word document window 5 Exploring
More informationIntroduction to MS Office Somy Kuriakose Principal Scientist, FRAD, CMFRI
Introduction to MS Office Somy Kuriakose Principal Scientist, FRAD, CMFRI Email: somycmfri@gmail.com 29 Word, Excel and Power Point Microsoft Office is a productivity suite which integrates office tools
More informationReferences. Parameters revisited. Reference Parameters. Example: Swapping values. Named Arguments
References ENGG1811 Computing for Engineers Week 7 Objects and Collections; Using the Macro Recorder; Shapes Chapra (Part 2 of ENGG1811 Text) Topic 10 (chapter 3) Macro Recorder ENGG1811 UNSW, CRICOS Provider
More informationCSV Roll Documentation
CSV Roll Documentation Version 1.1 March 2015 INTRODUCTION The CSV Roll is designed to display the contents of a Microsoft Excel worksheet in a Breeze playlist. The Excel worksheet must be exported as
More informationTutorial 1: Getting Started with Excel
Tutorial 1: Getting Started with Excel Microsoft Excel 2010 Objectives Understand the use of spreadsheets and Excel Learn the parts of the Excel window Scroll through a worksheet and navigate between worksheets
More information4) Study the section of a worksheet in the image below. What is the cell address of the cell containing the word "Qtr3"?
Choose The Correct Answer: 1) Study the highlighted cells in the image below and identify which of the following represents the correct cell address for these cells: a) The cell reference for the selected
More informationIntegrating Word with Excel
Integrating Word with Excel MICROSOFT OFFICE Microsoft Office contains a group of software programs sold together in one package. The programs in Office are designed to work independently and in conjunction
More informationMicrosoft Excel 2010 Level 1
Microsoft Excel 2010 Level 1 One Day Course Course Description You have basic computer skills such as using a mouse, navigating through windows, and surfing the Internet. You have also used paper-based
More informationCell to Cell mouse arrow Type Tab Enter Scroll Bars Page Up Page Down Crtl + Home Crtl + End Value Label Formula Note:
1 of 1 NOTE: IT IS RECOMMENDED THAT YOU READ THE ACCOMPANYING DOCUMENT CALLED INTRO TO EXCEL LAYOUT 2007 TO FULLY GRASP THE BASICS OF EXCEL Introduction A spreadsheet application allows you to enter data
More informationExcel Tutorial 1: Getting Started with Excel
Excel Tutorial 1: Getting Started with Excel TRUE/FALSE 1. The name of the active workbook appears in the status bar of the Excel window. ANS: F PTS: 1 REF: EX 2 2. The formula bar displays the value or
More informationICT GRAND WORKSHEET- CLASS-5. Section A. 2 nd Term Chapters 5, 6, 7, 8 and 9. Fill in the blanks with the correct answers.
ICT GRAND WORKSHEET- CLASS-5 2 nd Term - 2014-15 Chapters 5, 6, 7, 8 and 9. Section A Fill in the blanks with the correct answers. 1. Left is the alignment where the text is aligned from the left edge
More informationMicrosoft Excel Chapter 2. Formulas, Functions, and Formatting
Microsoft Excel 2010 Chapter 2 Formulas, Functions, and Formatting Objectives Enter formulas using the keyboard Enter formulas using Point mode Apply the AVERAGE, MAX, and MIN functions Verify a formula
More informationIntroduction. A cell can contain any of the following:
Introduction A spreadsheet is a table consisting of Rows and Columns. Where a row and a column meet, the box is called a Cell. Each cell has an address consisting of the column name followed by the row
More informationModule Overview. Instructor Notes (PPT Text)
Module 06 - Debugging and Troubleshooting SSIS Packages Page 1 Module Overview 12:55 AM Instructor Notes (PPT Text) As you develop more complex SQL Server Integration Services (SSIS) packages, it is important
More informationUsing Microsoft Excel
Using Microsoft Excel Formatting a spreadsheet means changing the way it looks to make it neater and more attractive. Formatting changes can include modifying number styles, text size and colours. Many
More informationIntroduction to Charts
Microsoft Excel 2013: Part 6 Introduction to Charts, Naming Cells, Create Drop-down lists, Track Changes, & Finalizing Your Workbook Introduction to Charts Charts allow you to illustrate your workbook
More informationMicrosoft Word. Teaching 21 st Century Skills Using Technology August 3, Short Cut Keys. Templates
Teaching 21 st Century Skills Using Technology August 3, 2011 Short Cut Keys Microsoft Word Cut Copy Paste Bold Italicize Underline Left Align Center Right Align Justify Undo Ctrl + X Ctrl + C Ctrl + V
More informationCreating Interactive Workbooks Using MS Excel Sarah Mabrouk, Framingham State College
Creating Interactive Workbooks Using MS Excel Sarah Mabrouk, Framingham State College Overview: MS Excel provides powerful calculation, statistical, graphing, and general data analysis and organizational
More informationSpreadsheet Software
Spreadsheet Software Objectives: Working with Spreadsheets Enhancing Productivity Using the Application Open, close a spreadsheet application. Open, close documents. Create a new spreadsheet based on default
More informationVBA Excel 2013/2016. VBA Visual Basic for Applications. Learner Guide
VBA Visual Basic for Applications Learner Guide 1 Table of Contents SECTION 1 WORKING WITH MACROS...5 WORKING WITH MACROS...6 About Excel macros...6 Opening Excel (using Windows 7 or 10)...6 Recognizing
More information