OV 3 - 1 Copyright © 2011 Element K Content LLC. All rights reserved.  Determine the Dialog Box Type  Capture User Input Creating an Interactive Worksheet.

Slides:



Advertisements
Similar presentations
 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 7 - JavaScript: Introduction to Scripting Outline 7.1 Introduction 7.2 Simple Program: Printing.
Advertisements

With Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
Tutorial 8: Developing an Excel Application
Objectives Understand the software development lifecycle Perform calculations Use decision structures Perform data validation Use logical operators Use.
Tutorial 12: Enhancing Excel with Visual Basic for Applications
Lesson 11 Page Numbers, Headers, and Footers
IS 1181 IS 118 Introduction to Development Tools VB Chapter 06.
Automating Tasks With Macros
String Variables Visual Basic for Applications 4.
Microsoft Excel 2003 Illustrated Complete with Excel Programming.
Automating Tasks With Macros. 2 Design a switchboard and dialog box for a graphical user interface Database developers interact directly with Access.
Input Validation Check the values entered into a text box before beginning any calculations Validation is a form of ‘self-protection’, rejecting bad data.
Input and Message Boxes. InputBox() Function An input box is a dialog box that opens and waits for the user to enter information. Syntax: InputBox(prompt[,title][,default])
McGraw-Hill/Irwin Programming in Visual Basic 6.0 © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Update Edition Chapter 4 Decisions and Conditions.
Using the Visual Basic Editor Visual Basic for Applications 1.
Input Validation Check the values entered into a text box before beginning any calculations Validation is a form of ‘self-protection’, rejecting bad data.
Chapter Three Using Variables and Constants Programming with Microsoft Visual Basic th Edition.
Exploring Microsoft Excel 2002 Chapter 8 Chapter 8 Automating Repetitive Tasks: Macros and Visual Basic for Applications By Robert T. Grauer Maryann Barber.
8 Copyright © 2004, Oracle. All rights reserved. Creating LOVs and Editors.
Creating Embedded Formative Assessment Dr. Steve Broskoske Misericordia University EDU 533 Computer-based Education.
Programming with Microsoft Visual Basic th Edition CHAPTER THREE USING VARIABLES AND CONSTANTS.
© 1999, by Que Education and Training, Chapter 5, pages of Introduction to Computer Programming with Visual Basic 6: A Problem-Solving Approach.
 2003 Prentice Hall, Inc. All rights reserved. CHAPTER 3 JavaScript 1.
McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. Extended Learning Module M Programming in Excel with VBA.
Saeed Ghanbartehrani Summer 2015 Lecture Notes #4: Working with Variables and User Interfaces IE 212: Computational Methods for Industrial Engineering.
© McGraw-Hill Companies, Inc., McGraw-Hill/Irwin Extended Learning Module M Programming in Excel with VBA.
McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. Extended Learning Module M Programming in Excel with VBA.
# 1# 1 VBA Objects, Message Boxes as Functions What is an object in VBA? How do you move between design mode and run mode? How can you make a cell become.
PMS /134/182 HEX 0886B6 PMS /39/80 HEX 5E2750 PMS /168/180 HEX 00A8B4 PMS /190/40 HEX 66CC33 By Adrian Gardener Date 9 July 2012.
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 Microsoft Office Excel Copyright © 2008 Pearson Prentice Hall. All rights reserved
OV Copyright © 2007 Element K Content LLC. All rights reserved. Exploring the Excel Environment  Explore the User Interface  Work with the Ribbon.
Java Programming, Second Edition Chapter Five Input and Selection.
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.
 2003 Prentice Hall, Inc. All rights reserved. CHAPTER 3 JavaScript 1.
OV Copyright © 2007 Element K Content LLC. All rights reserved. Microsoft Office Outlook Page Contacts Page Calendar Page.
Microsoft Visual Basic 2008: Reloaded Third Edition Chapter Six The Do Loop and List Boxes.
Chapter 9 Macros And Visual Basic For Applications.
Overview of VBA Programming & Syntax. Programming With Objects u Objects –Properties: attributes or characteristics of an object (e.g., font size, color,
OV Copyright © 2003 Element K Content LLC. All rights reserved. Working with Contacts  Forward Contacts  Create a vCard from a Contact  Export.
Practical Programming COMP153-08S Week 5 Lecture 1: Screen Design Subroutines and Functions.
XP New Perspectives on Microsoft Office Access 2003 Tutorial 10 1 Microsoft Office Access 2003 Tutorial 10 – Automating Tasks With Macros.
Copyright © 2015 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 13 GUI Programming.
1 Scripting Languages VBScript - Recognized mainly by Internet Explorer only - Netscape does have a plug-in JavaScript - Recognized by Internet Explorer.
Irwin/McGraw-Hill Copyright© 2000 by the McGraw-Hill Companies, Inc. PowerPoint® Presentation to accompany prepared by James T. Perry University of San.
Visual Basic for Application - Microsoft Access 2003 Programming applications using Objects.
Programming with Microsoft Visual Basic 2008 Fourth Edition Chapter Three Using Variables and Constants.
ME 142 Engineering Computation I Input, Output & Documentation.
OV Copyright © 2007 Element K Content LLC. All rights reserved. Exploring the Word Environment  Explore the User Interface  Work with the Ribbon.
Looping Structures Do Loops, For Next Do...Loop While structures check the condition after executing the code and repeat a code block until the test.
OV Copyright © 2010 Element K Content LLC. All rights reserved. Managing Styles  Import Styles from Microsoft Word Documents  Create Nested Styles.
Chapter 7 - JavaScript: Introduction to Scripting Outline 7.1 Introduction 7.2 Simple Program: Printing a Line of Text in a Web Page 7.3 Another JavaScript.
Chapter 4 Getting Started with VBA. Subroutines Subroutine is the logical section of code that performs a particular task. Subroutine is also called a.
© Scott/Jones Publishing, Inc. 1 Chapter 23 Working with Forms and Validation Excel 2003, Volume 2 by Karen J. Jolly.
Controlling Program Flow with Looping Structures
© by Pearson Education, Inc. All Rights Reserved.-Edited By Maysoon Al-Duwais 2.
Variables and Expressions Programming Right from the Start with Visual Basic.NET 1/e 7.
VBA Programming Functions and Decisions. If-Then-Else Structure used to consider alternatives If then --or-- If then Else End If.
Knowledge Base. Defining a Variable Dim statement Dim intXX As Integer Public in a Module Public dblNN As Double.
Loop Blocks Chapter 6 Part A. Program Blocks 1.Actions- commands, messages, methods 2.Branches- decisions to be made 3.Loops- actions to be repeated.
Subroutines (PrArith, Math,projCP1, PrAdrProc, PrAdrProcFunc) Please use speaker notes for additional information!
Custom Dialog Box Alternatives And Dealing with FileNames Joanna Wyrobek.
Programming with Microsoft Visual Basic 2012 Chapter 14: Access Databases and SQL.
Chapter 6 Controlling Program Flow with Looping Structures.
COMPREHENSIVE Excel Tutorial 12 Expanding Excel with Visual Basic for Applications.
The Advantage Series ©2005 The McGraw-Hill Companies, Inc. All rights reserved Chapter 12 Introducing Visual Basic for Applications Microsoft Office Excel.
Excel Tutorial 8 Developing an Excel Application
Microsoft Office Illustrated
Exploring Microsoft Excel
VBScript Session 6 Dani Vainstein.
Algorithms Take a look at the worksheet. What do we already know, and what will we have to learn in this term?
Presentation transcript:

OV Copyright © 2011 Element K Content LLC. All rights reserved.  Determine the Dialog Box Type  Capture User Input Creating an Interactive Worksheet

OV Copyright © 2011 Element K Content LLC. All rights reserved. Message Boxes Buttons for capturing users’ responses Buttons for capturing users’ responses Messages

OV Copyright © 2011 Element K Content LLC. All rights reserved. Input Boxes Title bar text Message Buttons Default text

OV Copyright © 2011 Element K Content LLC. All rights reserved. InputBox(Message, TitlebarTxt, DefaultTxt) The InputBox Function Default text Title bar text Message

OV Copyright © 2011 Element K Content LLC. All rights reserved. Const CompanyName As String = “Our Global Company” Constants

OV Copyright © 2011 Element K Content LLC. All rights reserved. The MsgBox Function MsgBox(Message, vbYesNo) Constant which determines the types of buttons Constant which determines the types of buttons Variable containing the message Variable containing the message

OV Copyright © 2011 Element K Content LLC. All rights reserved. The Code Continuation Character Command runs off right margin Command runs off right margin Command broken on several lines Command broken on several lines Long command on one line of code Long command on one line of code Code continuation character used at the end of each line Code continuation character used at the end of each line

OV Copyright © 2011 Element K Content LLC. All rights reserved. The vbCrLf Character Text displayed in the message box with line breaks Text displayed in the message box with line breaks Message = "Enter a number to sort by the following fields:" & vbCrLf & _ "1 –- By Date and Time" & vbCrLf & _ "2 -- By Customer Service Rep, Date, and Time" vbCrLf character used to indicate line breaks vbCrLf character used to indicate line breaks

OV Copyright © 2011 Element K Content LLC. All rights reserved. Decision Structures Select Case UserResponse Case “1” MsgBox (Message1, vbYesNo) Case “2” MsgBox (Message2, vbYesNo) Case Else MsgBox (ErrMsg, vbYesNo) End Select Comparative data values Criterion variable If UserResponse = 2 Then MsgBox(Msg1, vbYesNo) EndIf Criterion expression Code that runs depending on the criteria Code that runs depending on the criteria Code blocks that perform different actions based on criteria Code blocks that perform different actions based on criteria

OV Copyright © 2011 Element K Content LLC. All rights reserved. The Select Case Structure Select Case UserResponse Case “1” MsgBox (Message1, vbYesNo) Case “2” MsgBox (Message2, vbYesNo) Case Else MsgBox (ErrMsg, vbYesNo) End Select Beginning of the Select Case structure Beginning of the Select Case structure Comparative data values Criterion variable Code that runs depending on the value in criterion variable Code that runs depending on the value in criterion variable End of the Select Case structure End of the Select Case structure Case Else statement Case statements

OV Copyright © 2011 Element K Content LLC. All rights reserved. The If Then Structure If UserResponse = 2 Then MsgBox(Msg1, vbYesNo) EndIf If Then statement Criterion expression End If statement Code to run if criterion met

OV Copyright © 2011 Element K Content LLC. All rights reserved. 1. How can the use of input boxes and message boxes change the way you use Excel? Explain with examples. 2. Give examples of input that you may gather from a user to be used in a macro. Reflective Questions