On this class sheet, we can specify the members (properties and methods) that the objects created using this template will have.

Size: px
Start display at page:

Download "On this class sheet, we can specify the members (properties and methods) that the objects created using this template will have."

Transcription

1 Classes A class is a template for creating our own objects. In Excel VBA a class comes in the form of a special sheet which we can inset into our program. On this class sheet, we can specify the members (properties and methods) that the objects created using this template will have. We are then able to utilize the dot operator notation when accessing these members as we already do with Excel objects (e.g. Range("a1").Value = 3 (property) and Range("a1").Clear (method)). After the code in the class has been fully tested, this class sheet could then potentially be imported to another Excel project. This encapsulated code could then be utilized in the new project without regard for the internal workings of the code. We could then only need to concern ourselves what it does. Let us create a class in Excel. 1. Chapter title 1

2 To make a class In Excel VBA, a class takes the form of a special sheet - a class module. 1 From the VBE, choose Insert, Class Module. 2 With our new class sheet highlighted, choose Property Window from the VBE menu. (It won t do to right-click on the class sheet to choose properties!) 2 Title in easy steps

3 Creating properties 3 Change the Name property to clsemp. The name of the class module is most significant. We will use it to create new objects as we shall soon see. We want our class to have two properties. SurName and Pay. To do this we create two public variables. (Recall that a Public variable will be accessible from outside the sheet). 1 Double-click on the class in Project Explorer to open the class sheet (if it is not already open) and type the declarations shown. 1. Chapter title 3

4 2 Place a button on the worksheet and double-click.. We will declare our object emp1 in the General Declarations which will therefore be available throughout the whole of this sheet. Note that as we start to write the code as shown our class Name (clsemp) appears in IntelliSense. 3 Continue typing as shown. Suggestions for our properties also appear. 4 Complete the code which creates a new object and assigns values to its Properties. 4 Title in easy steps

5 5 In order to test that the property values, place another command button on the worksheet with the code below to display the values of the properties. 6 Private Sub CommandButton2_Click() MsgBox emp1.surname MsgBox emp1.salary End Sub Click CommandButon1 to write to the properties and then click CommandButon2 to read the properties. Message boxes should appear which successively display the respective property values. We have just made two properties by delaring two Public variables. A more sophisticated way of creating properties is to write Property Let and Property Get procedures in the class. For one thing, this allows us to respond differently in the class depending on whether it is a Let (write) or a Get (Read). Once again the Help is to be recommended for further details. 1. Chapter title 5

6 Creating a method This is achieved by writing a Public function in the class. 2 1 Option Explicit Public SurName As String Public Salary As Single Public Function Pay() As Single Pay = Salary / 52 End Function Return to the class sheet by double-clicking on it in the Project Explorer and and include the function shown. Place a third command button on the worksheet and include this code. Private Sub CommandButton3_Click() MsgBox emp1.pay End Sub 3 Click CommandButton 1 to write to the two properties and then click CommandButton 3 to call the Pay method which uses to value of the Salary property to calculate the weekly pay. Summary: The example given above serves only to introduce the concept of a class and the objects that can be created from a class. Classs are of enormous importance in the contempory programming environment but this may be understandably difficult to appreciate given that the example above could perhaps just as easily be written using convential functions. VB.Net for example, relies heavily on classes, even to be able to write the very simplest of programs and to that end, it is of advantage to have some basic understanding of these concepts before proceeding to learn to develop in such a language. 6 Title in easy steps

Agenda. First Example 24/09/2009 INTRODUCTION TO VBA PROGRAMMING. First Example. The world s simplest calculator...

Agenda. 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 information

DATA 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 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 information

Download the files from you will use these files to finish the following exercises.

Download the files from  you will use these files to finish the following exercises. Exercise 6 Download the files from http://www.peter-lo.com/teaching/x4-xt-cdp-0071-a/source6.zip, you will use these files to finish the following exercises. 1. This exercise will guide you how to create

More information

MS Excel VBA Class Goals

MS Excel VBA Class Goals MS Excel VBA 2013 Class Overview: Microsoft excel VBA training course is for those responsible for very large and variable amounts of data, or teams, who want to learn how to program features and functions

More information

Contents. Some Basics Simple VBA Procedure (Macro) To Execute The Procedure Recording A Macro About Macro Recorder VBA Objects Reference

Contents. Some Basics Simple VBA Procedure (Macro) To Execute The Procedure Recording A Macro About Macro Recorder VBA Objects Reference Introduction To VBA Contents Some Basics Simple VBA Procedure (Macro) To Execute The Procedure Recording A Macro About Macro Recorder VBA Objects Reference Some Basics Code: You perform actions in VBA

More information

Excel VBA Variables, Data Types & Constant

Excel VBA Variables, Data Types & Constant Excel VBA Variables, Data Types & Constant Variables are used in almost all computer program and VBA is no different. It's a good practice to declare a variable at the beginning of the procedure. It is

More information

Vba Variables Constant and Data types in Excel

Vba Variables Constant and Data types in Excel Vba Variables Constant and Data types in Excel VARIABLES In Excel VBA, variables are areas allocated by the computer memory to hold data. Data stored inside the computer memory has 4 properties: names,

More information

Creating a Mail Merge Document

Creating a Mail Merge Document Creating a Mail Merge Document 1. Set up your Data in an Excel spreadsheet Each column should represent a particular category of information to be included in the Mail Merge. In this example the First

More information

Microsoft Visual Basic 2005: Reloaded

Microsoft Visual Basic 2005: Reloaded Microsoft Visual Basic 2005: Reloaded Second Edition Chapter 10 Creating Classes and Objects Objectives After studying this chapter, you should be able to: Define a class Instantiate an object from a class

More information

Excel Programming with VBA (Macro Programming) 24 hours Getting Started

Excel 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 information

Excel Macro Runtime Error Code 1004 Saveas Of Object _workbook Failed

Excel Macro Runtime Error Code 1004 Saveas Of Object _workbook Failed Excel Macro Runtime Error Code 1004 Saveas Of Object _workbook Failed The code that follows has been courtesy of this forum and the extensive help i received from everyone. But after an Runtime Error '1004'

More information

This chapter is intended to take you through the basic steps of using the Visual Basic

This 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 information

LmÉPï C Á npï À ƵÀ ïì itech Analytic Solutions

LmÉPï C Á npï À ƵÀ ïì itech Analytic Solutions LmÉPï C Á npï À ƵÀ ïì itech Analytic Solutions No. 9, 1st Floor, 8th Main, 9th Cross, SBM Colony, Brindavan Nagar, Mathikere, Bangalore 560 054 Email: itechanalytcisolutions@gmail.com Website: www.itechanalytcisolutions.com

More information

Objects and Basic Programming Concepts (See Chapters 5 (skip ED 3), 6 of Albright) (See Chapters 5 (skip ED 4), 6 of Albright)

Objects and Basic Programming Concepts (See Chapters 5 (skip ED 3), 6 of Albright) (See Chapters 5 (skip ED 4), 6 of Albright) Objects and Basic Programming Concepts (See Chapters 5 (skip 71-78 ED 3), 6 of Albright) (See Chapters 5 (skip 78-84 ED 4), 6 of Albright) Kipp Martin January 12, 2012 Excel Files Files used in this lecture:

More information

Work more efficiently by learning how to automate recurring tasks and create user applications

Work more efficiently by learning how to automate recurring tasks and create user applications V B A ( M A C R O S ) Work more efficiently by learning how to automate recurring tasks and create user applications Prepared by: XL Your Mind Gneisenaustraße 27 40477, Düsseldorf Germany W H A T T O E

More information

CSE 123 Introduction to Computing

CSE 123 Introduction to Computing CSE 123 Introduction to Computing Lecture 6 Programming with VBA (Projects, forms, modules, variables, flowcharts) SPRING 2012 Assist. Prof. A. Evren Tugtas Starting with the VBA Editor Developer/Code/Visual

More information

Debugging Code in Access 2002

Debugging Code in Access 2002 0672321025 AppA 10/24/01 3:53 PM Page 1 Debugging Code in Access 2002 APPENDIX A IN THIS APPENDIX Setting the Correct Module Options for Maximum Debugging Power 2 Using the Immediate Window 6 Stopping

More information

Programming with the Peltier Tech Utility

Programming with the Peltier Tech Utility Programming with the Peltier Tech Utility The Peltier Tech Utility was designed so that much of its functionality is available via VBA as well as through the Excel user interface. This document explains

More information

Outline. Writing Functions and Subs. Review Immediate (1-line) Errors. Quiz Two on Thursday (2/23) Same Code Without Option Explicit

Outline. Writing Functions and Subs. Review Immediate (1-line) Errors. Quiz Two on Thursday (2/23) Same Code Without Option Explicit Writing Functions and Subs Larry Caretto Mechanical Engineering 209 Computer Programming for Mechanical Engineers February 21, 2017 Outline Review Debugging and Option Explicit What are functions and subs?

More information

We will now go through these steps in more detail before beginning the actual import exercises.

We will now go through these steps in more detail before beginning the actual import exercises. Title: Employee Import Lab Introduction At first, the Employee Import process could seem overwhelming; however after going through these exercises hopefully this will no longer be the case. The easiest

More information

Read More: Index Function Excel [Examples, Make Dynamic Range, INDEX MATCH]

Read More: Index Function Excel [Examples, Make Dynamic Range, INDEX MATCH] You can utilize the built-in Excel Worksheet functions such as the VLOOKUP Function, the CHOOSE Function and the PMT Function in your VBA code and applications as well. In fact, most of the Excel worksheet

More information

VBA Collections A Group of Similar Objects that Share Common Properties, Methods and

VBA 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 information

BASIC 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 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 information

Private Practice Management System. Patient Recalls.

Private Practice Management System. Patient Recalls. Private Practice Management System Patient Recalls Website Facebook http://www.tynedalecomputers.co.uk https://www.facebook.com/tynedalecomputers 1 There are two types of patient recalls within PPMS. The

More information

6/14/2010. VBA program units: Subroutines and Functions. Functions: Examples: Examples:

6/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 information

KEYWORDS DDE GETOBJECT PATHNAME CLASS VB EDITOR WITHEVENTS HMI 1.0 TYPE LIBRARY HMI.TAG

KEYWORDS 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 information

Sell2Wales Supplier User Guide ESPD

Sell2Wales Supplier User Guide ESPD Sell2Wales Supplier User Guide ESPD Table of Contents Introduction... 2 ESPD Module Activation... 2 Respond to an ESPD Request... 3 Submit ESPD Evidence... 11 ESPD Profile Edit/Update... 12 Supplier Representatives

More information

Sébastien Mathier wwwexcel-pratiquecom/en Variables : Variables make it possible to store all sorts of information Here's the first example : 'Display the value of the variable in a dialog box 'Declaring

More information

CS561 Manju Muralidharan Priya Structures in C CS200 STRUCTURES. Manju Muralidharan Priya

CS561 Manju Muralidharan Priya Structures in C CS200 STRUCTURES. Manju Muralidharan Priya OBJECTIVES: CS200 STRUCTURES Manju Muralidharan Priya By the end of this class you will have understood: 1. Definition of a structure 2. Nested Structures 3. Arrays of structure 4. User defined data types

More information

INSERT SUBTOTALS Database Exercise Sort the Data Department Department Data Tab Sort and Filter Group

INSERT SUBTOTALS Database Exercise Sort the Data Department Department Data Tab Sort and Filter Group INSERT SUBTOTALS Subtotals are used to summarize data in a range of data. This command offers many kinds of summary information, including counts, sums, averages, minimums, and maximums. When this feature

More information

Concatenate Function Page 505

Concatenate Function Page 505 Concatenate Function Page 505 The Concatenate Function is used to tie together different text strings. It is useful, for example, if you have columns in your Excel workbook for First Name and Last Name

More information

CASE STUDIES ON GREAT FORMS

CASE STUDIES ON GREAT FORMS CASE STUDIES ON GREAT FORMS Margaret E. Tassin, CFSP, CDC President Forms Doc, LLC 713-721-5275 mtassin@swbell.net Cindy K. Weitzel Forms Administrator Air Products & Chemicals, Inc. 610-481-4259 weitzeck@apci.com

More information

Assessed Exercise 1 Working with ranges

Assessed Exercise 1 Working with ranges Week 3 Assessed Exercise 1 Working with ranges Multiple representations Different thing in different cases Single cell Collection of cells The handle to the thing you want to work with Many operations

More information

Advanced Financial Modeling Macros. EduPristine

Advanced 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 information

The class definition is not a program by itself. It can be used by other programs in order to create objects and use them.

The class definition is not a program by itself. It can be used by other programs in order to create objects and use them. Data Classes and Object-Oriented Programming Data classes can be motivated by the need to create data structures that have grouped together a number of variables of simpler type (ints, Strings, arrays)

More information

Excel Tip: How to create a pivot table that updates automatically

Excel Tip: How to create a pivot table that updates automatically Submitted by Jess on Thu, 01/23/2014-21:38 Microsoft Excel has a powerful reporting tool called the Pivot Table. In a few minutes and in a few mouse clicks, you can build a report of your data. This is

More information

EXCEL WORKSHOP III INTRODUCTION TO MACROS AND VBA PROGRAMMING

EXCEL WORKSHOP III INTRODUCTION TO MACROS AND VBA PROGRAMMING EXCEL WORKSHOP III INTRODUCTION TO MACROS AND VBA PROGRAMMING TABLE OF CONTENTS 1. What is VBA? 2. Safety First! 1. Disabling and Enabling Macros 3. Getting started 1. Enabling the Developer tab 4. Basic

More information

Excel4apps Web ADI Investigation with Excel4apps Wands version Excel4apps Inc.

Excel4apps Web ADI Investigation with Excel4apps Wands version Excel4apps Inc. Excel4apps Web ADI Investigation with Excel4apps Wands version 5 2014 Excel4apps Inc. Table of Contents 1 Introduction... 3 2 Error... 3 3 Problem Description... 3 4 Cause... 3 5 Conclusion... 4 6 Next

More information

VBA Foundations, Part 7

VBA Foundations, Part 7 Welcome to this months edition of VBA Foundations in its new home as part of AUGIWorld. This document is the full version of the article that appears in the September/October issue of Augiworld magazine,

More information

Ms Excel Vba Continue Loop Through Columns Range

Ms Excel Vba Continue Loop Through Columns Range Ms Excel Vba Continue Loop Through Columns Range Learn how to make your VBA code dynamic by coding in a way that allows your 5 Different Ways to Find The Last Row or Last Column Using VBA In Microsoft

More information

LSP 121. LSP 121 Math and Tech Literacy II. Topics. More VBA. More VBA. Variables

LSP 121. LSP 121 Math and Tech Literacy II. Topics. More VBA. More VBA. Variables Greg Brewster, DePaul University Page 1 Math and Tech Literacy II Greg Brewster DePaul University Topics More Visual Basic Variables Naming Rules Implicit vs. Explicit Types Variable Lifetime Static variables

More information

How to design and print cards using a database connection with. emedia CS Software

How to design and print cards using a database connection with. emedia CS Software How to design and print cards using a database connection with emedia CS Software For this exercise, we will use a Database that has been created in EXCEL. The example below shows the database fields populated

More information

Language Fundamentals

Language Fundamentals Language Fundamentals VBA Concepts Sept. 2013 CEE 3804 Faculty Language Fundamentals 1. Statements 2. Data Types 3. Variables and Constants 4. Functions 5. Subroutines Data Types 1. Numeric Integer Long

More information

Introduction... 1 Part I: Getting Started with Excel VBA Programming Part II: How VBA Works with Excel... 31

Introduction... 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 information

1 Welcome to Microsoft Excel 2007

1 Welcome to Microsoft Excel 2007 1 Welcome to Microsoft Excel 2007 The Excel Window With Office 2007, Microsoft has abandoned the interface consisting of a menu and a collection of toolbars so common in all Windows applications until

More information

Corporate essentials

Corporate essentials Microsoft Office Excel 2016, Corporate essentials A comprehensive package for corporates and government organisations Knowledge Capital London transforming perfomance through learning MS OFFICE EXCEL 2016

More information

Introduction to Arrays. Midterm Comments. Midterm Results. Midterm Comments II. Function Basics (Problem 2) Introduction to Arrays April 11, 2017

Introduction to Arrays. Midterm Comments. Midterm Results. Midterm Comments II. Function Basics (Problem 2) Introduction to Arrays April 11, 2017 Introduction to Arrays Larry Caretto Mechanical Engineering 209 Computer Programming for Mechanical Engineers 11, 2017 Outline Review midterm Array notation and declaration Minimum subscript for arrays

More information

6. This is too selective. Amend the filter criteria to also include anyone born before How many staff are now selected?

6. This is too selective. Amend the filter criteria to also include anyone born before How many staff are now selected? 6. This is too selective. Amend the filter criteria to also include anyone born before 1964. How many staff are now selected? 7. Print the list, including the selection criteria. 8. Save the workbook as

More information

COPYRIGHTED MATERIAL PART I. LESSON 1: Introducing VBA. LESSON 2: Getting Started with Macros. LESSON 3: Introducing the Visual Basic Editor

COPYRIGHTED MATERIAL PART I. LESSON 1: Introducing VBA. LESSON 2: Getting Started with Macros. LESSON 3: Introducing the Visual Basic Editor PART I LESSON 1: Introducing VBA LESSON 2: Getting Started with Macros LESSON 3: Introducing the Visual Basic Editor LESSON 4: Working in the VBE COPYRIGHTED MATERIAL 1 Welcome to your first lesson in

More information

Introduction to VBA for Excel-Tutorial 7. The syntax to declare an array starts by using the Dim statement, such that:

Introduction to VBA for Excel-Tutorial 7. The syntax to declare an array starts by using the Dim statement, such that: Introduction to VBA for Excel-Tutorial 7 In this tutorial, you will learn deal with arrays. We will first review how to declare the arrays, then how to pass data in and how to output arrays to Excel environment.

More information

Workbooks (File) and Worksheet Handling

Workbooks (File) and Worksheet Handling Workbooks (File) and Worksheet Handling Excel Limitation Excel shortcut use and benefits Excel setting and custom list creation Excel Template and File location system Advanced Paste Special Calculation

More information

Delivering training since 1996

Delivering training since 1996 VBA (Visual Basic for Applications) is an Object Oriented Language. This programming language can be used to automate tasks by developing procedures and functions. It is useful for programmers and for

More information

2. Key the titles in cells A1 to D1, adjust to size 12, click on the bold button, and format with an underline.

2. Key the titles in cells A1 to D1, adjust to size 12, click on the bold button, and format with an underline. Excel Assignment 3 1. Create a new worksheet on Sheet 3. 2. Key the titles in cells A1 to D1, adjust to size 12, click on the bold button, and format with an underline. 3. Under Class in column D key Algebra

More information

IS 320 A/B Winter 1998 Page 1 Exam 1

IS 320 A/B Winter 1998 Page 1 Exam 1 IS 320 A/B Winter 1998 Page 1 Use your own paper to answer the questions. You may do work on this document but transfer your answers to separate sheets of paper. Turn in this document as well as your answers

More information

Excel VBA: For Non-Programmers (Programming In Everyday Language) (Volume 1) PDF

Excel VBA: For Non-Programmers (Programming In Everyday Language) (Volume 1) PDF Excel VBA: For Non-Programmers (Programming In Everyday Language) (Volume 1) PDF Microsoft Excel has, over the years, become the greatest software in the field of electronic worksheets. Its strength is

More information

How to add Customer and Supplier GSTIN number through excel upload in HDPOS smart?

How to add Customer and Supplier GSTIN number through excel upload in HDPOS smart? How to add Customer and Supplier GSTIN number through excel upload in HDPOS smart? To add Customer and Supplier GSTIN number in HDPOS smart, follow the steps below: 1. Run HDPOS smart. Click on Set-Up.

More information

Structured Solutions Inc. Tools MS Project to Excel Export/Import Tools

Structured Solutions Inc. Tools MS Project to Excel Export/Import Tools Structured Solutions Inc. Tools MS Project to Excel Export/Import Tools This Macro Enabled Excel workbook contains a collection of useful tools that enables the user to Get, Post or Lookup data from MS

More information

Civil Engineering Computation

Civil Engineering Computation Civil Engineering Computation First Steps in VBA Homework Evaluation 2 1 Homework Evaluation 3 Based on this rubric, you may resubmit Homework 1 and Homework 2 (along with today s homework) by next Monday

More information

CEU Online System, The Friday Center for Continuing Education, UNC-Chapel Hill How to Obtain Participant IDs for Awarding of CEUs

CEU Online System, The Friday Center for Continuing Education, UNC-Chapel Hill How to Obtain Participant IDs for Awarding of CEUs The Friday Center for Continuing Education has the responsibility of approving continuing education activities for which CEUs are recorded and maintained as a permanent record for individual participants.

More information

This is a book about using Visual Basic for Applications (VBA), which is a

This is a book about using Visual Basic for Applications (VBA), which is a 01b_574116 ch01.qxd 7/27/04 9:04 PM Page 9 Chapter 1 Where VBA Fits In In This Chapter Describing Access Discovering VBA Seeing where VBA lurks Understanding how VBA works This is a book about using Visual

More information

Not For Sale. Using and Writing Visual Basic for Applications Code. Creating VBA Code for the Holland Database. Case Belmont Landscapes

Not For Sale. Using and Writing Visual Basic for Applications Code. Creating VBA Code for the Holland Database. Case Belmont Landscapes Objectives Tutorial 11 Session 11.1 Learn about Function procedures (functions), Sub procedures (subroutines), and modules Review and modify an existing subroutine in an event procedure Create a function

More information

CS111: PROGRAMMING LANGUAGE II

CS111: PROGRAMMING LANGUAGE II 1 CS111: PROGRAMMING LANGUAGE II Computer Science Department Lecture 8(b): Abstract classes & Polymorphism Lecture Contents 2 Abstract base classes Concrete classes Polymorphic processing Dr. Amal Khalifa,

More information

Excel VBA for Absolute Beginners

Excel VBA for Absolute Beginners Applied Technology Group Sdn Bhd (1012178-W) W-5-3, Subang Square Business Centre, Jalan SS15/4G, 47500 Subang Jaya, Selangor, Malaysia. Tel: (+603) 5634 7905 Fax: (+603) 5637 9945 Email: admin@apptechgroups.net

More information

Unit 9 Spreadsheet development. Create a user form

Unit 9 Spreadsheet development. Create a user form Unit 9 Spreadsheet development Create a user form So far Unit introduction Learning aim A Features and uses Assignment 1 Learning aim B - Design a Spreadsheet Assignment 2 Learning aim C Develop and test

More information

Excel VBA Programming

Excel VBA Programming Exclusive Study Manual Excel VBA Programming Advanced Excel Study Notes (For Private Circulation Only Not For Sale) 7208669962 8976789830 (022 ) 28114695 www.laqshya.in info@laqshya.in Study Notes Excel

More information

Quoting Instructions for Connexion Group Quote

Quoting Instructions for Connexion Group Quote Quoting Instructions for Connexion Group Quote October 21, 2014 On the Connexion home page, click on the red Group Quotes button in middle tab under the photo and log in to the system using the UIS user

More information

DOWNLOAD PDF EXCEL MACRO TO PRINT WORKSHEET TO

DOWNLOAD PDF EXCEL MACRO TO PRINT WORKSHEET TO Chapter 1 : All about printing sheets, workbook, charts etc. from Excel VBA - blog.quintoapp.com Hello Friends, Hope you are doing well!! Thought of sharing a small VBA code to help you writing a code

More information

Course Title: Integrating Microsoft Excel with AutoCAD VBA

Course Title: Integrating Microsoft Excel with AutoCAD VBA Las Vegas, Nevada, December 3 6, 2002 Speaker Name: dave espinosa-aguilar Course Title: Integrating Microsoft Excel with AutoCAD VBA Course ID: CP32-2 Course Outline: For years AutoCAD users have been

More information

CS 155 Exam 2 Spring 2015

CS 155 Exam 2 Spring 2015 CS 155 Exam 2 Spring 2015 Name (print): Instructions: Keep your eyes on your own paper, and do your best to prevent anyone else from seeing your work. Do NOT communicate with anyone other than the professor/proctor

More information

Excel Level Three. You can also go the Format, Column, Width menu to enter the new width of the column.

Excel Level Three. You can also go the Format, Column, Width menu to enter the new width of the column. Introduction Excel Level Three This workshop shows you how to change column and rows, insert and delete columns and rows, how and what to print, and setting up to print your documents. Contents Introduction

More information

CS 5142 Scripting Languages

CS 5142 Scripting Languages CS 5142 Scripting Languages 8/04/2013 Objects in VBA Properties, Call-backs 1 Administrative Issues Waiting for course to be in the system Should happen soon Put your name, netid, major on the signup sheet

More information

Customizing the Excel 2013 program window. Getting started with Excel 2013

Customizing the Excel 2013 program window. Getting started with Excel 2013 Customizing the Excel 2013 program window 1 2 Getting started with Excel 2013 Working with data and Excel tables Creating workbooks Modifying workbooks Modifying worksheets Merging and unmerging cells

More information

C++ Programming Fundamentals

C++ Programming Fundamentals C++ Programming Fundamentals 269 Elvis C. Foster Lecture 11: Templates One of the contemporary sophistries of C++ programming is defining and manipulating templates. This lecture focuses on this topic.

More information

Visual Basic for Excel 97/2000/XP

Visual Basic for Excel 97/2000/XP Visual Basic for Excel 97/2000/XP Practical workbook Aims and Learning Objectives By the end of these notes, you will know the basics of programming using Visual Basic for Excel. You will also be able

More information

Hands-On-8 Advancing with VBA

Hands-On-8 Advancing with VBA Hands-On-8 Advancing with VBA Creating Event Procedures In this exercise you will create a message box that will display a welcome message to the user each time your database is opened. Before starting

More information

Integrating Microsoft Access with AutoCAD VBA dave espinosa-aguilar Toxic Frog Multimedia

Integrating Microsoft Access with AutoCAD VBA dave espinosa-aguilar Toxic Frog Multimedia November 30 December 3, 2004 Las Vegas, Nevada Integrating Microsoft Access with AutoCAD VBA dave espinosa-aguilar Toxic Frog Multimedia CP32-3 Course Description: For years AutoCAD users have been trying

More information

Visual basic tutorial problems, developed by Dr. Clement,

Visual 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 information

I

I I II Disclaimer Excel VBA Made Easy is an independent publication and is not affiliated with, nor has it been authorized, sponsored, or otherwise approved by Microsoft Corporation. Trademarks Microsoft,

More information

CS 200. Lecture 07. Excel Scripting. Excel Scripting. CS 200 Fall 2016

CS 200. Lecture 07. Excel Scripting. Excel Scripting. CS 200 Fall 2016 CS 200 Lecture 07 1 Abbreviations aka Also Known As Miscellaneous Notes CWS Course Web Site (http://www.student.cs.uwaterloo.ca/~cs200) VBE Visual Basic Editor intra- a prefix meaning within thus intra-cellular

More information

CS 200. Lecture 07. Excel Scripting. Miscellaneous Notes

CS 200. Lecture 07. Excel Scripting. Miscellaneous Notes CS 200 Lecture 07 1 Abbreviations aka Also Known As Miscellaneous Notes CWS Course Web Site (http://www.student.cs.uwaterloo.ca/~cs200) VBE Visual Basic Editor intra- a prefix meaning within thus intra-cellular

More information

Ms Excel Dashboards & VBA

Ms Excel Dashboards & VBA Ms Excel Dashboards & VBA 32 hours, 4 sessions, 8 hours each Day 1 Formatting Conditional Formatting: Beyond Simple Conditional Formats Data Validation: Extended Uses of Data Validation working with Validation

More information

CS 200. Lecture 05. Excel Scripting. Excel Scripting. CS 200 Fall 2014

CS 200. Lecture 05. Excel Scripting. Excel Scripting. CS 200 Fall 2014 CS 200 Lecture 05 1 Abbreviations aka CWS VBE intra- inter- Also Known As Miscellaneous Notes Course Web Site (http://www.student.cs.uwaterloo.ca/~cs200) Visual Basic Editor a prefix meaning within thus

More information

Using Application and WorksheetFunction objects

Using Application and WorksheetFunction objects INTRODUCTION Using Application and WorksheetFunction objects Excel provides a large number of built-in functions that can be used to perform specific calculations or to return information about your spreadsheet

More information

CS 200. Lecture 07. Excel Scripting. Excel Scripting. CS 200 Spring Wednesday, June 18, 2014

CS 200. Lecture 07. Excel Scripting. Excel Scripting. CS 200 Spring Wednesday, June 18, 2014 CS 200 Lecture 07 1 Miscellaneous Notes Abbreviations aka CWS VBE intra- inter- Also Known As Course Web Site (http://www.student.cs.uwaterloo.ca/~cs200) Visual Basic Editor a prefix meaning within thus

More information

CS 200. Lecture 05! Excel Scripting. Miscellaneous Notes

CS 200. Lecture 05! Excel Scripting. Miscellaneous Notes CS 200 Lecture 05! 1 Abbreviations aka CWS VBE intra- inter- Also Known As Miscellaneous Notes Course Web Site (http://www.student.cs.uwaterloo.ca/~cs200) Visual Basic Editor a prefix meaning within thus

More information

VBA Excel 2013/2016. VBA Visual Basic for Applications. Learner Guide

VBA 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

The Microsoft Excel Course is divided into 4 levels

The Microsoft Excel Course is divided into 4 levels MS Excel is a very powerful tools used by most of the data analyst in the industry. In this course you will learn how to Master Excel and make it perform any kind of data analysis and Visualization. You

More information

Tutorial 7. Working With Excel s Editing and Web Tools. Review

Tutorial 7. Working With Excel s Editing and Web Tools. Review Tutorial 7 Working With Excel s Editing and Web Tools Review Worksheet Group changes to one are applied to the entire group (think of all the time you can save!) Using 3D references to refer to cells on

More information

How to Set up a Budget Advanced Excel Part B

How to Set up a Budget Advanced Excel Part B How to Set up a Budget Advanced Excel Part B A budget is probably the most important spreadsheet you can create. A good budget will keep you focused on your ultimate financial goal and help you avoid spending

More information

THE HMI SOLUTION by 1

THE HMI SOLUTION by 1 THE HMI SOLUTION by 1 What is Premium HMI 4? Premium HMI 4 is the state of the art of the ASEM HMI Software Comes from strong and consolidated SCADA development The power of a supervisor system into an

More information

Computational Mathematics/Information Technology. Worksheet 2 Iteration and Excel

Computational Mathematics/Information Technology. Worksheet 2 Iteration and Excel Computational Mathematics/Information Technology Worksheet 2 Iteration and Excel This sheet uses Excel and the method of iteration to solve the problem f(x) = 0. It introduces user functions and self referencing

More information

Excel Template Instructions for the Glo-Brite Payroll Project (Using Excel 2010 or 2013)

Excel Template Instructions for the Glo-Brite Payroll Project (Using Excel 2010 or 2013) Excel Template Instructions for the Glo-Brite Payroll Project (Using Excel 2010 or 2013) T APPENDIX B he Excel template for the Payroll Project is an electronic version of the books of account and payroll

More information

Reference Services Division Presents. Excel Introductory Course

Reference Services Division Presents. Excel Introductory Course Reference Services Division Presents Excel 2007 Introductory Course OBJECTIVES: Navigate Comfortably in the Excel Environment Create a basic spreadsheet Learn how to format the cells and text Apply a simple

More information

MICROSOFT EXCEL VISUAL BASIC FOR APPLICATIONS INTRODUCTION

MICROSOFT EXCEL VISUAL BASIC FOR APPLICATIONS INTRODUCTION MICROSOFT EXCEL VISUAL BASIC FOR APPLICATIONS INTRODUCTION Welcome! Thank you for choosing WWP as your learning and development provider. We hope that your programme today will be a stimulating, informative

More information

Hiding or Discarding Insignificant Rows in a Report Template

Hiding or Discarding Insignificant Rows in a Report Template Hiding or Discarding Insignificant Rows in a Report Template Objective: This lesson will familiarize you with the following: what the ZeroingII add-in function is how to prepare your report to use the

More information

Microsoft Access 2010

Microsoft Access 2010 Microsoft Access 2010 Microsoft Access is database software that provides templates to help you add databases that make it easier to track, report, and share data with others. Although very powerful, the

More information

Excel VBA. Microsoft Excel is an extremely powerful tool that you can use to manipulate, analyze, and present data.

Excel 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 information

General rules, tips and tricks to use with Passport s Excel based Data Import module

General rules, tips and tricks to use with Passport s Excel based Data Import module General rules, tips and tricks to use with Passport s Excel based Data Import module 1.XLS files are typically required and not.xlsx Due to variability between operating systems and versions of Office

More information

My Report Project. The First Excel VBA Macro Project. ComboProjects. Prepared By Daniel Lamarche

My Report Project. The First Excel VBA Macro Project. ComboProjects. Prepared By Daniel Lamarche My Report Project The First Excel VBA Macro Project Prepared By Daniel Lamarche ComboProjects The My Report macro project By Daniel Lamarche (Last update January 2016). In this project we will records

More information

CS 2113 Midterm Exam, November 6, 2007

CS 2113 Midterm Exam, November 6, 2007 CS 2113 Midterm Exam, November 6, 2007 Problem 1 [20 pts] When the following VBA program is executed, what will be displayed in the message box? Option Explicit Sub problem1() Dim m As Integer, n As Integer

More information