Data Validation, Worksheet Protection, and Macros

Slides:



Advertisements
Similar presentations
Benchmark Series Microsoft Excel 2013 Level 2
Advertisements

© Paradigm Publishing, Inc Excel 2013 Level 2 Unit 2Managing and Integrating Data and the Excel Environment Chapter 7Automating Repetitive Tasks.
Computer Science & Engineering 2111 Text Functions 1CSE 2111 Lecture-Text Functions.
© Cheltenham Computer Training ADVANCED ECDL/ICDL [Module Four] - Spreadsheets ECDL ADVANCED Module 4 Spreadsheets Cheltenham Computer Training.
With Microsoft Excel 2007 Comprehensive 1e© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Excel 2007 Comprehensive.
Using Macros and Visual Basic for Applications (VBA) with Excel
Tutorial 7: Developing an Excel Application
Developing an Excel Application
Tutorial 8: Developing an Excel Application
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.
Tutorial 12: Enhancing Excel with Visual Basic for Applications
With Microsoft Excel 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Excel 2010.
Exploring Microsoft Excel 2002 Chapter 7 Chapter 7 List and Data Management: Converting Data to Information By Robert T. Grauer Maryann Barber Exploring.
Adding Automated Functionality to Office Applications.
Excel Lesson 14 Creating and Using Macros Microsoft Office 2010 Advanced Cable / Morrison 1.
COMPREHENSIVE Excel Tutorial 8 Developing an Excel Application.
Exploring Microsoft Excel 2002 Chapter 8 Chapter 8 Automating Repetitive Tasks: Macros and Visual Basic for Applications By Robert T. Grauer Maryann Barber.
University of Delaware Information Technology User Services.
Computer Science & Engineering 2111 Data Validation and Macros 1 CSE 2111 Lecture-Data Validation and Macros.
Microsoft Excel 2007 © Wiley Publishing All Rights Reserved. The L Line The Express Line to Learning L Line.
© 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.
EXCEL 2007 MACROS.  TOM FARRAR OF CNEXTWAVE INC.  GOAL : LEARNING ABOUT EXCEL MACROS.  PRESENTATION INCLUDES DISCUSSION AND DEMONSTRATION.  QUESTIONS.
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-
Automating Tasks with Visual Basic. Introduction  When can’t find a readymade macro action that does the job you want, you can use Visual Basic code.
Introduction to VBA MGMI Aug What is VBA? VBA = Visual Basic for Application Excel’s powerful built-in programming language An event-driven.
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.
The Advantage Series ©2004 The McGraw-Hill Companies, Inc. All rights reserved Chapter 8 Managing Worksheet Lists Microsoft Office Excel 2003.
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Excel 2002 Lesson 1 Introduction.
The Advantage Series ©2005 The McGraw-Hill Companies, Inc. All rights reserved Chapter 11 Developing Applications Using Excel Microsoft Office Excel 2003.
Computer Science & Engineering 2111 Lecture 9 Data Validation, Worksheet Protection, and Macros 1CSE Data Validation and Macros.
Advanced Lesson 5: Advanced Data Management Excel can import data, or bring it in from other sources and file formats. Importing data is useful because.
Intro to Excel - Session 7.31 Tutorial 7 - Session 7.3 Developing an Excel Application.
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.
Chapter 11 Enhancing an Online Form and Using Macros Microsoft Word 2013.
© Scott/Jones Publishing, Inc. 1 Chapter 23 Working with Forms and Validation Excel 2003, Volume 2 by Karen J. Jolly.
A lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft® Excel 2013.
1 CA202 Spreadsheet Application Focusing on Specific Data using Filters Lecture # 5.
1 CA202 Spreadsheet Application Automating Repetitive Tasks with Macros Lecture # 12 Dammam Community College.
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.
To play, start slide show and click on circle Access 1 Access 2 Access 3 Access 4 Access Access
Chapter 11 Enhancing an Online Form and Using Macros Microsoft Word 2013.
Excel Tutorial 8 Developing an Excel Application
Exploring Excel Chapter 8 The Expert User:
Exploring Excel Chapter 7 Automating Repetitive Tasks: Macros and
Excel: Macros & Pivot Tables
University of technology Department of Materials Engineering
Data Validation and Protecting Workbook
Innovative Technology Solutions
Developing an Excel Application
Microsoft Office Illustrated
Exchanging Data with Other Programs
Microsoft Excel 2003 Illustrated Complete
Introducing VBA Macros
Exploring Microsoft® Excel® 2016 Series Editor Mary Anne Poatsy
Creating Macros in Excel
Exploring Microsoft Excel
Macro.
Lesson 1 - Automating Tasks
Microsoft Office Excel 2003
Microsoft Excel 2007 – Level 2
Microsoft Excel 2007 – Level 2
Presentation transcript:

Data Validation, Worksheet Protection, and Macros Computer Science & Engineering 1113 Lecture 7 Data Validation, Worksheet Protection, and Macros This lecture will cover the use of some basic functions provided by EXCEL. We will be explore how these functions work and how they can be used to solve problems. CSE 1113 Lecture 7-Data Validation and Macros

CSE 1113 Lecture 7-Data Validation and Macros Controls the type of data or the values input in a cell Reduces input errors Multiple criterion can be applied to a cell Display a message dialog box Restrict input to a whole number within limits Restrict input to values in a drop down list Restrict input to a decimal number within limits Restrict input to a certain time frame. (either date, time, or both) Restrict text to a specified length Calculate what is allowed based on the value in another cell Use a formula to calculate what is valid CSE 1113 Lecture 7-Data Validation and Macros

CSE 1113 Lecture 7-Data Validation and Macros A series of commands and functions that are stored in a Microsoft Visual Basic module Automates your keystrokes and actions in Excel Use these when you complete the same tasks repetitively When you create a macro VBA program code is automatically generated CSE 1113 Lecture 7-Data Validation and Macros

Macro Example Scenario You work for a company that employs people to make customer satisfaction calls for various companies. Your department provides services for all the major auto makers in the U.S. Each employee is assigned a state and it is their job to call each household and conduct a brief survey. You receive a weekly list of customers from each auto company and it is your job to separate the list by state and distribute the list to your employees. Your manager would like the customers stored in an Excel file with each state having its own worksheet. CSE 1113 Lecture 7-Data Validation and Macros

CSE 1113 Lecture 7-Data Validation and Macros File Sent from Vendor Comma Delimited File, meaning each piece of information is separated by a comma. (Created in Notepad or another text editor.) Information can be separated by other characters such as a colon, or tab. Information can be sent in different formats such as .csv or xml files. CSE 1113 Lecture 7-Data Validation and Macros

CSE 1113 Lecture 7-Data Validation and Macros Create your Template Create an Excel Workbook named Customers. Create tabs with the names of the States you need. Input information that will not change Copy the worksheet created to all the tabs and change the state name (Follow the slides to complete steps 4-6) CSE 1113 Lecture 7-Data Validation and Macros

CSE 1113 Lecture 7-Data Validation and Macros Create data validation rules for your spreadsheet CSE 1113 Lecture 7-Data Validation and Macros

Break Down into Separate Macros Macro Name: UnprotectWorksheets Macro Name: ImportFile Delete contents from every worksheet Import information Macro Name: SeparateStates Concatenate phone number Filter Copy/Paste Macro Name: ProtectWorksheets Note: Always create a backup first CSE 1113 Lecture 7-Data Validation and Macros

ProtectWorksheet Macro CSE 1113 Lecture 7-Data Validation and Macros

CSE 1113 Lecture 7-Data Validation and Macros

CSE 1113 Lecture 7-Data Validation and Macros ImportFile Macro CSE 1113 Lecture 7-Data Validation and Macros

CSE 1113 Lecture 7-Data Validation and Macros SeparateStates Macro CSE 1113 Lecture 7-Data Validation and Macros

CSE 1113 Lecture 7-Data Validation and Macros

Example of VBA Program Code generated from recording macro Sub ImportFile() Range("A4:H56").Select Selection.QueryTable.Delete Selection.ClearContents Range("A4").Select With ActiveSheet.QueryTables.Add(Connection:= _ "TEXT;L:\CSE2111\Autumn 2013\CSE 2111 Slides AU 2013\Lecture 9-Data Validation and Macros\Macro Test\Customers.txt" _ Step through a macro CSE 1113 Lecture 7-Data Validation and Macros

Assigning Macro to the Quick Access Toolbar FileOptionsQuick Access Toolbar CSE 1113 Lecture 7-Data Validation and Macros

CSE 1113 Lecture 7-Data Validation and Macros