Chapter 11: Introduction to the Visual Basic Environment Spreadsheet-Based Decision Support Systems Prof. Name Position (123) 456-7890 University.

Slides:



Advertisements
Similar presentations
Introduction to Macro Introduction to Visual Basic for Application Recording a Macro Looking at the code of Recorded Macro.
Advertisements

Introduction to Visual Basic.NET Uploaded By: M.Sheraz anjum.
Using VB with MS Applications R. Juhl, Delta College.
Office 2003 Post-Advanced Concepts and Techniques M i c r o s o f t Excel Project 7 Using Macros and Visual Basic for Applications (VBA) with Excel.
Using Macros and Visual Basic for Applications (VBA) with Excel
Developing an Excel Application
Tutorial 8: Developing an Excel Application
Introduction to Excel Chapter 2 Excel Fundamentals Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
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.
Chapter 6: Pivot Tables Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name.
 2006 Pearson Education, Inc. All rights reserved Introduction to the Visual C# 2005 Express Edition IDE.
Microsoft Excel 2003 Illustrated Complete with Excel Programming.
Customizing Word Microsoft Office Word 2007 Illustrated Complete.
1 Chapter 4 The Fundamentals of VBA, Macros, and Command Bars.
Using the Visual Basic Editor Visual Basic for Applications 1.
Chapter 12: Recording Macros Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name.
Office 2003 Post-Advanced Concepts and Techniques M i c r o s o f t Word Project 8 Working with Macros and Visual Basic for Applications (VBA)
VBA & Excel Barry L. Nelson IEMS 465 Fall Quarter 2003.
Exploring Microsoft Excel 2002 Chapter 8 Chapter 8 Automating Repetitive Tasks: Macros and Visual Basic for Applications By Robert T. Grauer Maryann Barber.
Introduction to VBA. This is not Introduction to Excel We’re going to assume you have a basic level of familiarity with Excel If you don’t, or you need.
Microsoft Visual Basic 2005 CHAPTER 8 Using Procedures and Exception Handling.
Saeed Ghanbartehrani Summer 2015 Lecture Notes #2: The Visual Basic Editor The Visual Basic for Applications Programming Language IE 212: Computational.
Microsoft Visual Basic 2012 Using Procedures and Exception Handling CHAPTER SEVEN.
Project 9 Using Visual Basic for Applications (VBA) to Customize and Automate Excel Jason C. H. Chen, Ph.D. Professor of Management Information Systems.
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.
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.
OV Copyright © 2011 Element K Content LLC. All rights reserved.  Create a Macro with the Macro Recorder  Edit a Macro  Debug a Macro  Customize.
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 Microsoft Office Excel Copyright © 2008 Pearson Prentice Hall. All rights reserved
Automating Database Processing Chapter 6. Chapter Introduction Design and implement user-friendly menu – Called navigation form Macros – Automate repetitive.
Copyright © 2001 by Wiley. All rights reserved. Chapter 2: Using Visual Basic to Create a First Project Getting Started with VB Development Environment.
Chapter 12: Recording Macros Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name.
Copyright © 2010 Wolters Kluwer Health | Lippincott Williams & Wilkins Introduction to Windows Chapter 2.
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
OCC Network Drives  H:\  P:\ 
Chapter Two Creating a First Project in Visual Basic.
Chapter 3 The Visual Basic Editor. Important Features of the VBE Alt-F11 will open the Visual Basic Editor. The Code window is to the right, Project Explorer.
MS Access: Introduction 1Database Design. MS Access: Overview MS Access A Database Management System (DBMS) designed to create applications that organize,
Chapter 9 Macros And Visual Basic For Applications.
Access Lesson 11 Creating and Running Macros Microsoft Office 2010 Advanced Cable / Morrison 1.
Chapter 2: Excel Basics and Formatting Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name.
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.
Introduction to Excel VBA UNC Charlotte CPE/PDH Series December 17, 2009.
A lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft® Excel 2013.
INSERT BOOK COVER 1Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Getting Started with VBA for Microsoft Office 2010 by.
Introduction to Microsoft Excel Macros COE 201- Computer Proficiency.
Chapter 2: Excel Basics and Formatting Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name.
Visual Basic Integrated Development Environment (IDE) 56:150 Information System Design.
COMPREHENSIVE Access Tutorial 11 Using and Writing Visual Basic for Applications Code.
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
Chapter 15: Sub Procedures and Function Procedures Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University.
1 CA202 Spreadsheet Application Automating Repetitive Tasks with Macros Lecture # 12 Dammam Community College.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 2 The Visual Basic.NET Integrated Development Environment.
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.
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.
The Advantage Series ©2005 The McGraw-Hill Companies, Inc. All rights reserved Chapter 12 Introducing Visual Basic for Applications Microsoft Office Excel.
Outline In this module, the following topics will be covered:
1. Introduction to Visual Basic
Microsoft Access Illustrated
Microsoft Office Illustrated
Excel VBA Day 3 of 3 Tom Vorves.
Microsoft Excel 2003 Illustrated Complete
Objectives Learn about Function procedures (functions), Sub procedures (subroutines), and modules Review and modify an existing subroutine in an event.
Exploring Microsoft Excel
Presentation transcript:

Chapter 11: Introduction to the Visual Basic Environment Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name

2 Overview  11.1 Introduction  11.2 The Visual Basic Editor  11.3 The Object Browser  11.4 Summary

3 Introduction  The basics of the Visual Basic Editor environment.  The components of the Project Explorer, Properties, and Code Windows.  The difference between a property, method, and event.  The Object Browser.

4 Visual Basic Editor  Project Explorer  Properties Window  Code Window  Immediate and Watch Windows  VBE Toolbars

5 Visual Basic Editor  The Visual Basic Editor (VBE) is the environment in which you work with VBA programming code. –Developer tab on the Ribbon –ALT + F11  Three main windows in the VBE –Project Explorer –Properties –Code  Two other windows in VBE, used for debugging –Immediate –Watch

6 Visual Basic Editor (cont’d)  The Visual Basic Editor windows:

7 Project Explorer  Lists all projects in any open workbook.  Each workbook has a project, and each project can have several parts. –Objects: Workbook and worksheets –Modules: contain the VBA code for any macro.  Standard modules are used for writing general procedures, or sections of code, to perform different tasks with Excel objects  Class modules are used to create new properties and methods for more advanced coding. –Forms: the user interface tools in Excel.  Use Insert > Module or Insert > User Form to add a new module or form to the current project; can also use icon from standard toolbar.

8 Properties Window  Contains detailed information about any selected part of a project in the Project Explorer.  Some basic naming and formatting properties can be modified for worksheets and workbooks.  Properties are very important for user forms –Formatting –Position –Picture –Scrolling –Behavior

9 Code Window  Displays the VBA code for the highlighted part of a project in the Project Explorer.  When macros are recorded they are simultaneously created as VBA code in the Visual Basic Editor.  There are two types of procedures –Sub procedures –Function procedures

10 Immediate and Watch Windows  Both of these windows are used for debugging.  Immediate Window executes whatever is entered immediately.  Watch Window displays values of inserted variables.  Use the View menu option to view or hide any window.

11 VBE Toolbars  There are four toolbars in VBE: –Standard –Edit –Debug –UserForm  The Standard toolbar allows you to –Switch to the Excel window, insert a user form, module, or procedure, and save our current code modifications. –Run, pause, or stop your code. –View the design mode of our form design. –Perform several standard editing options, such as cut, copy, paste, search, undo, and redo.

12 The Object Browser  Properties, Methods and Events  Libraries, Classes, and Members

13 Object Browser  Provides a list of properties, methods and events of all Excel objects which may be manipulated in VBA.  Properties are the physical descriptions of all Excel objects. –The description of the particular property is called the value of the property.  Methods are the actions that can be performed on an object. –The elements of a method statement are called the arguments of the method.  Events are actions that are performed on controls. –A control is a user interface object, such as a button or check box.

14 Object Browser  There are larger categories into which various objects are grouped –Libraries = collections of VBA and Excel object classes –Classes = groups of related objects –Members = properties, methods, and constants of a selected class of objects  View > Object Browser or icon from standard toolbar.

15 Object Browser (cont’d)  All classes containing the searched object are shown in the Search Results window.  All classes and members of a selected class are shown in the second window.

16 Summary  The Visual Basic Editor (VBE) is the environment in which you work with VBA programming code.  There are three main windows in VBE: the Code Window, the Project Explorer, and the Properties Window.  The Object Browser provides a list of properties and methods of all Excel objects that may be manipulated in VBA.  Properties are the physical descriptions of all Excel objects, and the description of the particular property is called the value of the property.  Methods are the actions that can be performed on the object. The elements of a method statement are called the arguments of the method.  Groups of related objects are called classes; collections of VBA and Excel object classes are called libraries; and the properties, methods, and constants of a selected class of objects are known as the members of the class of objects.

17 Additional Links  (place links here)