IS-171 Computing With Spreadsheets

Slides:



Advertisements
Similar presentations
Chapter 10 Excel: Data Handling or What do we do with all that data?
Advertisements

Visual Basic for Applications. What it does Extends the features and built in functions of Excel – Create and run VB procedures – Some may be easy to.
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.
Tutorial 12: Enhancing Excel with Visual Basic for Applications
Chapter 8 Data Analysis. Agenda Functions –AND and OR –COUNT, COUNTA, and COUNTIF –CONCATENATE and TRIM –RANK and QUARTILE –MOD and ROW Goal Seek in decision-making.
Exploring Microsoft Excel 2002 Chapter 7 Chapter 7 List and Data Management: Converting Data to Information By Robert T. Grauer Maryann Barber Exploring.
PROJECT OVERVIEW PINGER EXECUTIVE PLOTS AKBAR MEHDI.
Programming Excel Macros, Visual Basic, and Solving Your Problem.
1 Chapter 4 The Fundamentals of VBA, Macros, and Command Bars.
Chapter 7 Data Management. Agenda Database concept Import data Input and edit data Sort data Function Filter data Create range name Calculate subtotal.
Attribute databases. GIS Definition Diagram Output Query Results.
Adding Automated Functionality to Office Applications.
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.
Access Tutorial 10 Automating Tasks with Macros
Chapter 10: Working with Large Data Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name.
Microsoft Excel 2007 © Wiley Publishing All Rights Reserved. The L Line The Express Line to Learning L Line.
VBA (Visual Basic for Applications) What is Excel, just a spreadsheet? Time for Demos...
ChE 117 Motivation Lots of Tools Can’t always use “Canned Programs”
University of Toronto at Scarborough © Andria Hunter, Kersti Wain-Bantin CSCA01 VBA 1 Lecture Outline Record macro and examine VBA code VBA Editor (IDE)
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 Microsoft Office Excel Copyright © 2008 Pearson Prentice Hall. All rights reserved
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.
Visual Basic for Applications Macro Programming For Microsoft Office.
Excel VBA TOM VORVES DO THE ACTIVITY EXERCISE ON PAGE 53 IF YOU WISH ElaineNikky JennArrinMylinh Matt Move Row.
VBA Lab 2 I ns.Samia Al-blwi. Visual Basic Grammar Object: Visual Basic is an object-oriented language. This means that all the items in Excel are thought.
© Keith Vander Linden, 2000 “All our knowledge brings us nearer to our ignorance, All our ignorance brings us nearer to death, But nearness to death, no.
Analysing Data with Excel Viewing Help To view Help 1.On the Start menu, point to Programs, and then click Microsoft Excel. 2.On the Help menu,
# 1# 1 CS 105 Spring 2010 Macros: Sub Procedures You Record What is a macro? What is With…End With? What is Sub…End Sub? Relative vs. Absolute.
EXCEL Intro to Microsoft Excel. Objectives for the Week Content ObjectivesLanguage Objectives I can create and manipulate charts, graphs, and reports.
Excel: Pivot Tables Exploring Computer Science Lesson Supplemental.
Chapter 9 Macros And Visual Basic For Applications.
Database Management Supplement 1. 2 I. The Hierarchy of Data Database File (Entity, Table) Record (info for a specific entity, Row) Field (Attribute,
Chapter 11: Introduction to VBA Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name.
Visual Basic for Application - Microsoft Access 2003 Programming applications using Objects.
Excel Wrap-Up. What tab is used to access macro functionality in Excel? The Developer tab Know what a recorded macro is as well as its advantages and.
Macros in Excel Using VBA Time Required – 5 hours.
COMPREHENSIVE Excel Tutorial 12 Expanding Excel with Visual Basic for Applications.
VBA Excel Macro 1.Create a Macro: To create a macro in Excel VBA, Create a Macro: To create a macro in Excel VBA,Create a Macro: To create a macro.
IT for quantitative information Working with Spreadsheets 1.
Microsoft Access 2016 Overview of Microsoft Access Databases
Web Database Programming Using PHP
Pengantar Sistem Informasi
Exploring Excel Chapter 7 Automating Repetitive Tasks: Macros and
IST 220 – Intro to Databases
Excel: Macros & Pivot Tables
Exploring Excel Chapter 5 List and Data Management: Converting Data to
Exploring Computer Science Lesson Supplemental
Web Database Programming Using PHP
Analyzing Data with Excel
Fundamentals & Ethics of Information Systems IS 201
VBA (Visual Basic for Applications) What is Excel, just a spreadsheet?
Innovative Technology Solutions
Microsoft Access Illustrated
Learning Excel Session 9 and 10 Dr. Chaitali Basu Mukherji.
Introducing VBA Macros
Tutorial 8 Objectives Continue presenting methods to import data into Access, export data from Access, link applications with data stored in Access, and.
Databases and Information Management
Overview of Microsoft Access Databases Chapter 1
1) What is a Database? A database is an organized collection of information about a subject. Examples: Address Book, Telephone Book.
MANAGING DATA RESOURCES
Exploring Microsoft Excel
Computers Are Your Future
1) What is a Database? A database is an organized collection of information about a subject. Examples: Address Book, Telephone Book.
Databases and Information Management
Databases Continued 10/18/05.
Topic 11 Lesson 1 - Analyzing Data in Access
Microsoft Office Excel 2003
Tutorial 10 Automating Tasks with Macros
Presentation transcript:

IS-171 Computing With Spreadsheets List Management and Macros Week 7

Carol Wilson and Fred Ferwerda Outline List and Data Management Database Issues Macros 11/26/2018 Carol Wilson and Fred Ferwerda

Recall the Data Hierarchy Bit (binary 0 or 1) Byte (8 bits = a character or number) Field (e.g., Name = a column in a table) Record (multiple fields = a row in a table) File (multiple records/rows  Excel) Database (relational DB = multiple tables) Recall this information from before. Bit - 0/1 (off/on switch) character, string and number (do they already know this? If not, we’ll talk about it later) field - a logically indivisible chunk of data e.g., name, rank, or serial number record - a group of related fields e.g., an employee record file - a group of related records e.g., an employee file database - a group of related files e.g., an entire accounting database Compare this with the natural language hierarchy letters/words/sentences/paragraphs/books Use these terms to discuss an example generated by one of the groups in the class. Note how some of the applications required using all levels of the data hierarchy. 11/26/2018 Carol Wilson and Fred Ferwerda

Manipulating Excel Lists Importing text files Sorting Filtering (similar to database query) Subtotals (similar to database report) Pivot Table (similar to database report) Demo the sorting and filtering features using the Class 7 Demo file (Personnel file). Point out that sorting Excel worksheets using the Ascending/Descending icons on the Standard Toolbar is very dangerous because if you have any blank columns or rows, the sort icons will only sort up to the blank rows and/or columns. It is much safer to use the Data  Sort function because it will highlight the sort area. Filtering lists use the filter command, show them the auto filter on the list This is much more like the SQL SELECT command. If you plan to use the Data  Subtotal command, you must first sort the worksheet on the column you want subtotals on. Pivot tables will create new worksheets for the Pivot Table (a summarized report) and the pivot chart. 11/26/2018 Carol Wilson and Fred Ferwerda

Carol Wilson and Fred Ferwerda Feature Creep Now we have facilities for importing sorting, filtering, and reporting, as well as a means to pass data between multiple worksheets. We get something approaching a database management system (DBMS), without having one. Multiple tables related in some way Rudimentary query facilities 11/26/2018 Carol Wilson and Fred Ferwerda

Carol Wilson and Fred Ferwerda Excel vs Database When to use databases (instead of Excel): Large data sets Formed input and output Arbitrary and complicated queries Multiple users Security IS-141 covers databases Fire up MS Access and show them a sample database (e.g., Northwind) 11/26/2018 Carol Wilson and Fred Ferwerda

Carol Wilson and Fred Ferwerda What is a Macro? A set of instructions telling Excel what commands to execute Written in Visual Basic for Applications (VBA) Recorded with the Macro Recorder 11/26/2018 Carol Wilson and Fred Ferwerda

Carol Wilson and Fred Ferwerda Recording a Macro NameAndCourse macro Shortcut key Record macro Stop recording NameAndCourse macro from exercise 1, page 370 11/26/2018 Carol Wilson and Fred Ferwerda

Carol Wilson and Fred Ferwerda Elements of a Macro Sub/End Sub Comments Variables Properties With Statement 11/26/2018 Carol Wilson and Fred Ferwerda

Carol Wilson and Fred Ferwerda Step Into Executes one command of the macro Other debugging commands available 11/26/2018 Carol Wilson and Fred Ferwerda

Personal Macro Workbook Opened every time Excel starts Only on your machine Always accessible 11/26/2018 Carol Wilson and Fred Ferwerda

User Interaction Functions InputBox MsgBox Sub FooBar() ActiveCell.FormulaR1C1 = InputBox("Enter something interesting") MsgBox (Range("A1")) End Sub 11/26/2018 Carol Wilson and Fred Ferwerda