Extending the Unit Converter

Size: px
Start display at page:

Download "Extending the Unit Converter"

Transcription

1 Extending the Unit Converter You wrote a unit converter previously that converted the values in selected cells from degrees Celsius to degrees Fahrenheit. You could write separate macros to do different conversions e.g. degrees Fahrenheit to degrees Celsius, mm to inches, metres to feet and so on. This would be easy to do the code for each one would be almost identical. The problem for the user would be finding the right macro. It would be far more useful if the user was presented with a dialog box in which they could select the conversion they want. You will see here how to create a dialog box like the one in Figure 1. The user will be able to select a conversion from the list given. When they press one of the buttons, the conversion will take place. If they choose, for example, mm to inches and press Convert -> then it will convert from mm to inches: pressing Convert <- will convert from inches to mm. You will see the steps required to do this. Figure 1 You will write this code so that it is in your Personal Macro Workbook i.e. so that it can be run from any workbook. To do this you need to make sure that PERSONAL.XLS (or PERSONAL.XLSB) is appearing in the Project Explorer in the VB editor as shown in Figure 2. If it isn t then open a workbook and record a macro in the Personal Macro Workbook you don t need to have anything in the macro just start recording and stop straight away. When you switch to the VB Editor, PERSONAL.XLS should appear as shown. Figure 2

2 Select VBAProject (PERSONAL.XLS) in the Project Explorer as shown and choose INSERT USERFORM. A blank window (called a Form in VB) will appear as shown in Figure 3. If you click on the blank form, a toolbox should appear like that shown if it doesn t, then select VIEW TOOLBOX. Also shown is the Properties Window (below the Project Explorer below) if it doesn t appear then select VIEW PROPERTIES WINDOW. Figure 3 The toolbox has a range of standard items you can place on your form. The first one you will use is a button. Select the Command Button tool and place one on the form by clicking on it. You can resize the button as desired. You can now run your form using the Run toolbar button. The form should appear on the screen. You can press the button but nothing will happen at the moment you will have to add some code. To get back to your code press the Close button on the form. Now add a second button and a Listbox control. Visual Object Properties When you create a visual object in VB (such as a UserForm or a CommandButton, etc.) you do two things: 1. You create the image that will appear on the screen. 2. You create a set of variables that hold the properties of the object and which can be accessed from within your code. While the properties of any of the objects on the form can be changed by your code, they can also be altered by you using the VB Editor. The property settings you change at this stage will determine what the form looks like when run.

3 The best way to illustrate this is with an example. You will start by changing the properties of your form. Select the form by clicking on it. The properties of the form will appear in the Properties Window. You will change the text at the top of the form this is the Caption property. Simply delete the current caption and type Unit Converter as shown below. Figure 4 Now select one of the buttons and change its Caption to Convert ->, and change the caption of the other button to Convert <-. Also, change the Name properties of the two buttons and the listbox to sensible things e.g. Conv_btn1, Conv_btn2 and Option_list. The name is how you will refer to the object in your code sensible names will make programming easier. Run the form again and see that the properties have changed. When you are creating a form you always follow the procedure outlined here: 1. Think what the form has to do and how the user will interact with it. In this case it needs a list box for the options and two buttons that the user will press to do the conversions. 2. Draw the objects on the form. 3. Give the objects sensible names. Note that you weren t told to change the Name property of the form don t do this. 4. Change the properties of the objects to the way you want them to be when the form first appears to the user. Only after doing all that should you think about writing code. Event-Driven Programming There are two main types of programs sequential programs and event-driven programs. In sequential programs the programmer dictates the order in which the user does things the computer simply follows the instructions in the program line-byline. That s the kind of program you have written so far in this module. In eventdriven programs, the user dictates the order. Note, for example, how you use Microsoft Excel. You can press the Ribbon controls, type, choose right-click menu options, etc., in any order you want. Similarly, if you

4 have a dialog box with many options and settings, you can set the options in any order you want. Things do not have to happen in a fixed sequence. This is event-driven programming. It allows more flexible and user-friendly programs to be written. An event-driven program reacts to events. These may be the clicking of a button, the moving of the mouse, the pressing of a key, etc. If there are no events, the program does nothing. The way you write an event-driven program is that you first decide what you want to happen and when. You then tie code to the appropriate event. This will be made clear with this example. In this case there are only two events the program needs to react to the pressing of one button or the other. When a button is pressed, the correct conversion must be done in Excel. The program won t have to do anything when the user selects one of the options - the program should only react when the user presses a button. Tying code to an event This is easy to do in VB. If you want something to happen when the button is pressed, just double-click on the button in the VB Editor. An empty subroutine will appear: Private Sub Conv_btn1_Click() End Sub Any commands placed between these lines will be run when the button named Conv_btn1 is Clicked note the name given to the subroutine. To test this type MsgBox "Test" switch back to the form by selecting it in the Project Explorer, and press the Run button. The form will appear as before but this time when you click on the button the message box should appear. Close the form. The VB Editor should appear again with the form displayed. To get back to the code, double-click on the button again. Note that, the more workbooks you have open in Excel, the more cluttered the Project Explorer will become and the more chance you have of making a mistake when switching back and forward between your form and your code. Close any workbooks that you are not currently using. You will now tie your code for converting to one of the buttons. Double click on it and put this code in it For i = 1 To Selection.Cells.Count Selection.Cells(i).Value = Selection.Cells(i).Value * Next i Test this by typing some values in a worksheet, select them, switch to the VB Editor, run the form and press the button. The values should be converted. Adding Options to Listbox There is no way of adding items to the Listbox list by using the Properties Window. The only way to add items is using VB code. This is easy to do but the question is, where should this code go? In event-driven programming, what you need to think is

5 when should it happen? You want the items added when the form is run. You will now see how to do this. You need to tie the code to an event that happens when the form first appears. One such event is the Initialize event of the UserForm object. To tie code to this event, double-click on the UserForm in the VB Editor. An empty subroutine will appear Private Sub UserForm_Click() End Sub This is not the correct place to put the code. This corresponds to the user Clicking on the UserForm note the title. Above the code in the VB Editor there are two list boxes as shown in Figure 5. The first contains a list of all the objects on your form. When you select any of these objects, the second list contains a list of all the events associated with that object. If you look in the second list you will see things such as Click (the event when the user clicks on the UserForm), DblClick (the event when the user double-clicks on the form), MouseMove (the event when the user moves the mouse across the UserForm), and so on. If you wish, you can tie code to any of these events it all depends on what you want your program to do. Figure 5 Select the Initialize event for your UserForm. This occurs when the form is run. The following empty subroutine will appear Private Sub UserForm_Initialize() End Sub Now place this code in it: Options_list.AddItem ("Celsius <-> Fahrenheit") Options_list.AddItem ("mm <-> inches") Options_list.AddItem ("metres <-> feet") Options_list.AddItem ("kilometres <-> miles") and run the form. The list should appear and you should be able to select any one of the items. Note that you may have to resize the listbox on the form so that you can see them all. It s a good idea to make one of these items a default setting i.e. when you run the form it will already be selected. Add the following line Options_list.ListIndex = 0 The list index is the number of the item selected (starting at zero). When you run it now the first option should be selected.

6 Getting the Options to Work When the user presses the Convert -> button, the program needs to make the conversions depending on which option is selected. You can check which option is selected by checking the value of Options_list.ListIndex. Change the code tied to the button. You will need an If-ElseIf type structure inside the For-Next loop so that the correct conversion is done depending on the value of Options_list.ListIndex (which, remember, will be 0 if the first option is chosen). Don t try and do everything at once just get the first two options to work first. Then get all the options to work. Then copy your code to the Convert <- button the only thing you will have to change is the line changing the values. The conversion details are listed in Table 1. Celsius -> Fahrenheit c* mm -> inches mm* metres -> feet m* kilometres -> miles km* Fahrenheit -> Celsius (f 32)/1.8 inches -> mm in/ feet -> metres ft/ miles -> kilometres ml/ Table 1 Modal Forms At the moment your form is not easy to use. You need to select the cells you want to convert, run the form, select the option and press the button. You then have to close the form. If you want to convert some other cells you need to go through all that again. Firstly, it is possible to add a Ribbon control to run the form but you won t see how to do that here. It would also be much better if you were able to switch back and forth between the form and Excel so you wouldn t have to close the form before selecting new cells. At the moment the form is modal i.e. when it s running you can t use Excel. Select the form in the editor and change its ShowModal property to FALSE. Now try it again. You ll find that it s much easier to use you can jump between it and Excel.

You can record macros to automate tedious

You can record macros to automate tedious Introduction to Macros You can record macros to automate tedious and repetitive tasks in Excel without writing programming code directly. Macros are efficiency tools that enable you to perform repetitive

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

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

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

Microsoft Excel 2007 Macros and VBA

Microsoft Excel 2007 Macros and VBA Microsoft Excel 2007 Macros and VBA With the introduction of Excel 2007 Microsoft made a number of changes to the way macros and VBA are approached. This document outlines these special features of Excel

More information

Computer Science Lab Exercise 2

Computer Science Lab Exercise 2 osc 127 Lab 2 1 of 10 Computer Science 127 - Lab Exercise 2 Excel User-Defined Functions - Repetition Statements (pdf) During this lab you will review and practice the concepts that you learned last week

More information

Using Microsoft Excel

Using Microsoft Excel Using Microsoft Excel Files in Microsoft Excel are referred to as Workbooks. This is because they can contain more than one sheet. The number of sheets a workbook can contain is only limited by your computer

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

Window (further define the behaviour of objects)

Window (further define the behaviour of objects) Introduction to Visual Basic Visual Basic offers a very comprehensive programming environment that can be a bit overwhelming at the start. The best rule is to ignore all that you do not need until you

More information

Copyrighted Material. Copyrighted. Material. Copyrighted

Copyrighted Material. Copyrighted. Material. Copyrighted Properties Basic Properties User Forms Arrays Working with Assemblies Selection Manager Verification and Error Handling Introduction This exercise is designed to go through the process of changing document

More information

2. create the workbook file

2. create the workbook file 2. create the workbook file Excel documents are called workbook files. A workbook can include multiple sheets of information. Excel supports two kinds of sheets for working with data: Worksheets, which

More information

This project was originally conceived as a pocket database application for a mobile platform, allowing a

This project was originally conceived as a pocket database application for a mobile platform, allowing a Dynamic Database ISYS 540 Final Project Executive Summary This project was originally conceived as a pocket database application for a mobile platform, allowing a user to dynamically build, update, and

More information

Excel Basics: Working with Spreadsheets

Excel Basics: Working with Spreadsheets Excel Basics: Working with Spreadsheets E 890 / 1 Unravel the Mysteries of Cells, Rows, Ranges, Formulas and More Spreadsheets are all about numbers: they help us keep track of figures and make calculations.

More information

Excel has a powerful automation feature that lets you automate processes that you need to do repeatedly.

Excel has a powerful automation feature that lets you automate processes that you need to do repeatedly. Professor Shoemaker There are times in Excel when you have a process that requires several or many steps and that you need to do repeatedly. Excel has a powerful automation feature that lets you automate

More information

RegressItPC installation and test instructions 1

RegressItPC installation and test instructions 1 RegressItPC installation and test instructions 1 1. Create a new folder in which to store your RegressIt files. It is recommended that you create a new folder called RegressIt in the Documents folder,

More information

HOUR 4 Understanding Events

HOUR 4 Understanding Events HOUR 4 Understanding Events It s fairly easy to produce an attractive interface for an application using Visual Basic.NET s integrated design tools. You can create beautiful forms that have buttons to

More information

SolidWorks A Visual Basic for Applications tutorial for SolidWorks users SDC PUBLICATIONS

SolidWorks A Visual Basic for Applications tutorial for SolidWorks users SDC PUBLICATIONS Automating SolidWorks 2004 using Macros A Visual Basic for Applications tutorial for SolidWorks users SDC PUBLICATIONS Schroff Development Corporation www.schroff.com www.schroff-europe.com By Mike Spens

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

Using Microsoft Excel

Using Microsoft Excel About Excel Using Microsoft Excel What is a Spreadsheet? Microsoft Excel is a program that s used for creating spreadsheets. So what is a spreadsheet? Before personal computers were common, spreadsheet

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

MODULE VI: MORE FUNCTIONS

MODULE VI: MORE FUNCTIONS MODULE VI: MORE FUNCTIONS Copyright 2012, National Seminars Training More Functions Using the VLOOKUP and HLOOKUP Functions Lookup functions look up values in a table and return a result based on those

More information

Access Forms Masterclass 5 Create Dynamic Titles for Your Forms

Access Forms Masterclass 5 Create Dynamic Titles for Your Forms Access Forms Masterclass 5 Create Dynamic Titles for Your Forms Published: 13 September 2018 Author: Martin Green Screenshots: Access 2016, Windows 10 For Access Versions: 2007, 2010, 2013, 2016 Add a

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

VBA Foundations, Part 12

VBA Foundations, Part 12 As quickly as you can Snatch the Pebble from my hand, he had said as he extended his hand toward you. You reached for the pebble but you opened it only to find that it was indeed still empty. Looking down

More information

Macros in Excel: Recording, Running, and Editing

Macros in Excel: Recording, Running, and Editing Macros in Excel: Recording, Running, and Editing This document provides instructions for creating, using, and revising macros in Microsoft Excel. Simple, powerful, and easy to customize, Excel macros can

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

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

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

Excel & Visual Basic for Applications (VBA)

Excel & Visual Basic for Applications (VBA) Class meeting #18 Monday, Oct. 26 th GEEN 1300 Introduction to Engineering Computing Excel & Visual Basic for Applications (VBA) user interfaces o on-sheet buttons o InputBox and MsgBox functions o userforms

More information

VISUAL BASIC 2 EDITOR

VISUAL BASIC 2 EDITOR VISUAL BASI 2 EDITOR hapter SYS-ED/ OMPUTER EDUATION TEHNIQUES, IN. Objectives You will learn: How to edit code in the. How to create, open, and access project(s). How to edit scripts and use the code

More information

XP: Backup Your Important Files for Safety

XP: Backup Your Important Files for Safety XP: Backup Your Important Files for Safety X 380 / 1 Protect Your Personal Files Against Accidental Loss with XP s Backup Wizard Your computer contains a great many important files, but when it comes to

More information

Taskbar: Working with Several Windows at Once

Taskbar: Working with Several Windows at Once Taskbar: Working with Several Windows at Once Your Best Friend at the Bottom of the Screen How to Make the Most of Your Taskbar The taskbar is the wide bar that stretches across the bottom of your screen,

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

EXCEL BASICS: MICROSOFT OFFICE 2007

EXCEL BASICS: MICROSOFT OFFICE 2007 EXCEL BASICS: MICROSOFT OFFICE 2007 GETTING STARTED PAGE 02 Prerequisites What You Will Learn USING MICROSOFT EXCEL PAGE 03 Opening Microsoft Excel Microsoft Excel Features Keyboard Review Pointer Shapes

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

Using Microsoft Excel

Using Microsoft Excel Using Microsoft Excel Excel contains numerous tools that are intended to meet a wide range of requirements. Some of the more specialised tools are useful to people in certain situations while others have

More information

Printing Tips Revised: 1/5/18

Printing Tips Revised: 1/5/18 Printing Tips By: Mike Angstadt This document contains tips on how to print from the PACs. Printing Email Attachments Many email services allow you to preview email attachments. This often misleads patrons

More information

Computer Science Lab Exercise 1

Computer Science Lab Exercise 1 1 of 10 Computer Science 127 - Lab Exercise 1 Introduction to Excel User-Defined Functions (pdf) During this lab you will experiment with creating Excel user-defined functions (UDFs). Background We use

More information

Lesson 16: Collaborating in Excel. Return to the Excel 2007 web page

Lesson 16: Collaborating in Excel. Return to the Excel 2007 web page Lesson 16: Collaborating in Excel Return to the Excel 2007 web page Working with Project Folders Create folders to store your files for a project in an organized manner Main folder in (Win XP) My Computer

More information

Instructions for Using the Databases

Instructions for Using the Databases Appendix D Instructions for Using the Databases Two sets of databases have been created for you if you choose to use the Documenting Our Work forms. One set is in Access and one set is in Excel. They are

More information

Getting started 7. Writing macros 23

Getting started 7. Writing macros 23 Contents 1 2 3 Getting started 7 Introducing Excel VBA 8 Recording a macro 10 Viewing macro code 12 Testing a macro 14 Editing macro code 15 Referencing relatives 16 Saving macros 18 Trusting macros 20

More information

Intro. Scheme Basics. scm> 5 5. scm>

Intro. Scheme Basics. scm> 5 5. scm> Intro Let s take some time to talk about LISP. It stands for LISt Processing a way of coding using only lists! It sounds pretty radical, and it is. There are lots of cool things to know about LISP; if

More information

EXCEL BASICS: MICROSOFT OFFICE 2010

EXCEL BASICS: MICROSOFT OFFICE 2010 EXCEL BASICS: MICROSOFT OFFICE 2010 GETTING STARTED PAGE 02 Prerequisites What You Will Learn USING MICROSOFT EXCEL PAGE 03 Opening Microsoft Excel Microsoft Excel Features Keyboard Review Pointer Shapes

More information

Excel programmers develop two basic types of spreadsheets: spreadsheets

Excel programmers develop two basic types of spreadsheets: spreadsheets Bonus Chapter 1 Creating Excel Applications for Others In This Chapter Developing spreadsheets for yourself and for other people Knowing what makes a good spreadsheet application Using guidelines for developing

More information

Chapter 10 Working with Graphs and Charts

Chapter 10 Working with Graphs and Charts Chapter 10: Working with Graphs and Charts 163 Chapter 10 Working with Graphs and Charts Most people understand information better when presented as a graph or chart than when they look at the raw data.

More information

Creating If/Then/Else Routines

Creating If/Then/Else Routines 10 ch10.indd 147 Creating If/Then/Else Routines You can use If/Then/Else routines to give logic to your macros. The process of the macro proceeds in different directions depending on the results of an

More information

The name of our class will be Yo. Type that in where it says Class Name. Don t hit the OK button yet.

The name of our class will be Yo. Type that in where it says Class Name. Don t hit the OK button yet. Mr G s Java Jive #2: Yo! Our First Program With this handout you ll write your first program, which we ll call Yo. Programs, Classes, and Objects, Oh My! People regularly refer to Java as a language that

More information

Light Speed with Excel

Light Speed with Excel Work @ Light Speed with Excel 2018 Excel University, Inc. All Rights Reserved. http://beacon.by/magazine/v4/94012/pdf?type=print 1/64 Table of Contents Cover Table of Contents PivotTable from Many CSV

More information

Spreadsheet Concepts: Creating Charts in Microsoft Excel

Spreadsheet Concepts: Creating Charts in Microsoft Excel Spreadsheet Concepts: Creating Charts in Microsoft Excel lab 6 Objectives: Upon successful completion of Lab 6, you will be able to Create a simple chart on a separate chart sheet and embed it in the worksheet

More information

AlphaCam Routing Example

AlphaCam Routing Example The Project In this project we are going to draw a door front with an arched panel from information supplied by the user and then machine the door complete. The project will contain a single form and two

More information

Excel Advanced

Excel Advanced Excel 2016 - Advanced LINDA MUCHOW Alexandria Technical & Community College 320-762-4539 lindac@alextech.edu Table of Contents Macros... 2 Adding the Developer Tab in Excel 2016... 2 Excel Macro Recorder...

More information

CS130/230 Lecture 12 Advanced Forms and Visual Basic for Applications

CS130/230 Lecture 12 Advanced Forms and Visual Basic for Applications CS130/230 Lecture 12 Advanced Forms and Visual Basic for Applications Friday, January 23, 2004 We are going to continue using the vending machine example to illustrate some more of Access properties. Advanced

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

Class #10 Wednesday, November 8, 2017

Class #10 Wednesday, November 8, 2017 Graphics In Excel Before we create a simulation, we need to be able to make a drawing in Excel. The techniques we use here are also used in Mathematica and LabVIEW. Drawings in Excel take place inside

More information

Macros enable you to automate almost any task that you can undertake

Macros enable you to automate almost any task that you can undertake Chapter 1: Building and Running Macros In This Chapter Understanding how macros do what they do Recording macros for instant playback Using the relative option when recording macros Running the macros

More information

Microsoft Access Lesson 3: Creating Reports

Microsoft Access Lesson 3: Creating Reports Microsoft Access Lesson 3: Creating Reports In the previous lesson the information you retrieved from a database always was in the form of a table. This may be all you need if you are the only person using

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

EstimatorXpress PowerPack Tutorials

EstimatorXpress PowerPack Tutorials EstimatorXpress PowerPack Tutorials Software by Adrian Wild, Steven Mulgrew & James Pizzey Tutorial Written by Olivia Wild & John Rees House Builder XL Limited House Builder XL Limited 2010 2 Contents

More information

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

This book is about using Visual Basic for Applications (VBA), which is a In This Chapter Describing Access Discovering VBA Seeing where VBA lurks Understanding how VBA works Chapter 1 Where VBA Fits In This book is about using Visual Basic for Applications (VBA), which is a

More information

Macros enable you to automate almost any task that you can undertake

Macros enable you to automate almost any task that you can undertake Chapter 1: Building and Running Macros In This Chapter Understanding how macros do what they do Recording macros for instant playback Using the relative option when recording macros Running the macros

More information

ADD AND NAME WORKSHEETS

ADD AND NAME WORKSHEETS 1 INTERMEDIATE EXCEL While its primary function is to be a number cruncher, Excel is a versatile program that is used in a variety of ways. Because it easily organizes, manages, and displays information,

More information

Rescuing Lost Files from CDs and DVDs

Rescuing Lost Files from CDs and DVDs Rescuing Lost Files from CDs and DVDs R 200 / 1 Damaged CD? No Problem Let this Clever Software Recover Your Files! CDs and DVDs are among the most reliable types of computer disk to use for storing your

More information

Excel Foundation (Step 2)

Excel Foundation (Step 2) Excel 2007 Foundation (Step 2) Table of Contents Working with Names... 3 Default Names... 3 Naming Rules... 3 Creating a Name... 4 Defining Names... 4 Creating Multiple Names... 5 Selecting Names... 5

More information

Chapter 1: Getting Started

Chapter 1: Getting Started Chapter 1: Getting Started 1 Chapter 1 Getting Started In OpenOffice.org, macros and dialogs are stored in documents and libraries. The included integrated development environment (IDE) is used to create

More information

Introduction VBA for AutoCAD (Mini Guide)

Introduction VBA for AutoCAD (Mini Guide) Introduction VBA for AutoCAD (Mini Guide) This course covers these areas: 1. The AutoCAD VBA Environment 2. Working with the AutoCAD VBA Environment 3. Automating other Applications from AutoCAD Contact

More information

Text Box Frames. Format Text Box

Text Box Frames. Format Text Box Text Box Frames Publisher is different from Word Processing software in that text in Publisher only exists in Text Box Frames. These frames make it possible to type or import text and then move or resize

More information

This document describes how to use the CAP workbook with Excel It applies to version 6b of the workbook.

This document describes how to use the CAP workbook with Excel It applies to version 6b of the workbook. Introduction This document describes how to use the CAP workbook with Excel 2007. It applies to version 6b of the workbook. Be sure to use the new version 6b of the CAP workbook when using Excel 2007!

More information

Open a new Excel workbook and look for the Standard Toolbar.

Open a new Excel workbook and look for the Standard Toolbar. This activity shows how to use a spreadsheet to draw line graphs. Open a new Excel workbook and look for the Standard Toolbar. If it is not there, left click on View then Toolbars, then Standard to make

More information

Orientation. How do I use SYNOPSYS? What does it do?

Orientation. How do I use SYNOPSYS? What does it do? Orientation How do I use SYNOPSYS? What does it do? Those are both important questions, and the orientation in this section will make it easier for you to understand what s going on when you go through

More information

Links Menu (Blogroll) Contents: Links Widget

Links Menu (Blogroll) Contents: Links Widget 45 Links Menu (Blogroll) Contents: Links Widget As bloggers we link to our friends, interesting stories, and popular web sites. Links make the Internet what it is. Without them it would be very hard to

More information

13 FORMATTING WORKSHEETS

13 FORMATTING WORKSHEETS 13 FORMATTING WORKSHEETS 13.1 INTRODUCTION Excel has a number of formatting options to give your worksheets a polished look. You can change the size, colour and angle of fonts, add colour to the borders

More information

Manual Vba Access 2010 Close Form Without Saving Record

Manual Vba Access 2010 Close Form Without Saving Record Manual Vba Access 2010 Close Form Without Saving Record I have an Access 2010 database which is using a form frmtimekeeper to keep Then when the database is closed the close sub writes to that same record

More information

LSP 121. LSP 121 Math and Tech Literacy II. Topics. Loops. Loops. Loops

LSP 121. LSP 121 Math and Tech Literacy II. Topics. Loops. Loops. Loops LSP 121 Math and Tech Literacy II Greg Brewster DePaul University Topics The FOR loop Repeats a set of statements a fixed number of times The WHILE loop Repeats a set of statements until a condition is

More information

VISUAL BASIC 2005 EXPRESS: NOW PLAYING

VISUAL BASIC 2005 EXPRESS: NOW PLAYING VISUAL BASIC 2005 EXPRESS: NOW PLAYING by Wallace Wang San Francisco ADVANCED DATA STRUCTURES: QUEUES, STACKS, AND HASH TABLES Using a Queue To provide greater flexibility in storing information, Visual

More information

Using Microsoft Access

Using Microsoft Access Using Microsoft Access USING MICROSOFT ACCESS 1 Interfaces 2 Basic Macros 2 Exercise 1. Creating a Test Macro 2 Exercise 2. Creating a Macro with Multiple Steps 3 Exercise 3. Using Sub Macros 5 Expressions

More information

Using Microsoft Excel

Using Microsoft Excel Using Microsoft Excel Formatting a spreadsheet means changing the way it looks to make it neater and more attractive. Formatting changes can include modifying number styles, text size and colours. Many

More information

Create Reflections with Images

Create Reflections with Images Create Reflections with Images Adding reflections to your images can spice up your presentation add zest to your message. Plus, it s quite nice to look at too So, how will it look? Here s an example You

More information

6. Essential Spreadsheet Operations

6. Essential Spreadsheet Operations 6. Essential Spreadsheet Operations 6.1 Working with Worksheets When you open a new workbook in Excel, the workbook has a designated number of worksheets in it. You can specify how many sheets each new

More information

How to work a workbook

How to work a workbook CHAPTER 7 How to work a workbook Managing multiple workbooks...173 Opening multiple windows for the same workbook....178 Hiding and protecting workbooks...182 In early versions of Microsoft Excel, worksheets,

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 2016 Functions

Excel 2016 Functions Flash Fill New in Office 2013 is a feature called Flash fill. Flash fill will help you fill in empty cells within a spreadsheet based on patterns that already exist. You may need to provide a couple of

More information

Introduction to Microsoft Excel

Introduction to Microsoft Excel Chapter A spreadsheet is a computer program that turns the computer into a very powerful calculator. Headings and comments can be entered along with detailed formulas. The spreadsheet screen is divided

More information

Creating a new form with check boxes, drop-down list boxes, and text box fill-ins. Customizing each of the three form fields.

Creating a new form with check boxes, drop-down list boxes, and text box fill-ins. Customizing each of the three form fields. In This Chapter Creating a new form with check boxes, drop-down list boxes, and text box fill-ins. Customizing each of the three form fields. Adding help text to any field to assist users as they fill

More information

The first program we write will display a picture on a Windows screen, with buttons to make the picture appear and disappear.

The first program we write will display a picture on a Windows screen, with buttons to make the picture appear and disappear. 4 Programming with C#.NET 1 Camera The first program we write will display a picture on a Windows screen, with buttons to make the picture appear and disappear. Begin by loading Microsoft Visual Studio

More information

Customizing Access Parameter Queries

Customizing Access Parameter Queries [Revised and Updated 15 August 2018] Everyone likes parameter queries! The database developer doesn't have to anticipate the user's every requirement, and the user can vary their enquiries without having

More information

Crash Course in Modernization. A whitepaper from mrc

Crash Course in Modernization. A whitepaper from mrc Crash Course in Modernization A whitepaper from mrc Introduction Modernization is a confusing subject for one main reason: It isn t the same across the board. Different vendors sell different forms of

More information

How do I use BatchProcess

How do I use BatchProcess home news tutorial what can bp do purchase contact us TUTORIAL Written by Luke Malpass Sunday, 04 April 2010 20:20 How do I use BatchProcess Begin by downloading the required version (either 32bit or 64bit)

More information

Introduction to Form Controls

Introduction to Form Controls Introduction to Form Controls What Are Form Controls? Form Controls are objects which you can place onto an Excel Worksheet which give you the functionality to interact with your models data. You can use

More information

1 Introduction to Using Excel Spreadsheets

1 Introduction to Using Excel Spreadsheets Survey of Math: Excel Spreadsheet Guide (for Excel 2007) Page 1 of 6 1 Introduction to Using Excel Spreadsheets This section of the guide is based on the file (a faux grade sheet created for messing with)

More information

FACULTY AND STAFF COMPUTER FOOTHILL-DE ANZA. Office Graphics

FACULTY AND STAFF COMPUTER FOOTHILL-DE ANZA. Office Graphics FACULTY AND STAFF COMPUTER TRAINING @ FOOTHILL-DE ANZA Office 2001 Graphics Microsoft Clip Art Introduction Office 2001 wants to be the application that does everything, including Windows! When it comes

More information

Technical White Paper

Technical White Paper Technical White Paper Via Excel (VXL) Item Templates This technical white paper is designed for Spitfire Project Management System users. In this paper, you will learn how to create Via Excel Item Templates

More information

How to Rescue a Deleted File Using the Free Undelete 360 Program

How to Rescue a Deleted File Using the Free Undelete 360 Program R 095/1 How to Rescue a Deleted File Using the Free Program This article shows you how to: Maximise your chances of recovering the lost file View a list of all your deleted files in the free Restore a

More information

» How do I Integrate Excel information and objects in Word documents? How Do I... Page 2 of 10 How do I Integrate Excel information and objects in Word documents? Date: July 16th, 2007 Blogger: Scott Lowe

More information

Using Microsoft Excel

Using Microsoft Excel Using Microsoft Excel in Excel Although calculations are one of the main uses for spreadsheets, Excel can do most of the hard work for you by using a formula. When you enter a formula in to a spreadsheet

More information

17. Introduction to Visual Basic Programming

17. Introduction to Visual Basic Programming 17. Introduction to Visual Basic Programming Visual Basic (VB) is the fastest and easiest way to create applications for MS Windows. Whether you are an experienced professional or brand new to Windows

More information

Maximizing the Power of Excel With Macros and Modules

Maximizing the Power of Excel With Macros and Modules Maximizing the Power of Excel With Macros and Modules Produced by SkillPath Seminars The Smart Choice 6900 Squibb Road P.O. Box 2768 Mission, KS 66201-2768 1-800-873-7545 www.skillpath.com Maximizing the

More information

ENGG1811 Computing for Engineers Week 9 Dialogues and Forms Numerical Integration

ENGG1811 Computing for Engineers Week 9 Dialogues and Forms Numerical Integration ENGG1811 Computing for Engineers Week 9 Dialogues and Forms Numerical Integration ENGG1811 UNSW, CRICOS Provider No: 00098G W9 slide 1 References & Info Chapra (Part 2 of ENGG1811 Text) Topic 21 (chapter

More information

Budget Exercise for Intermediate Excel

Budget Exercise for Intermediate Excel Budget Exercise for Intermediate Excel Follow the directions below to create a 12 month budget exercise. Read through each individual direction before performing it, like you are following recipe instructions.

More information

GUI Design and Event- Driven Programming

GUI Design and Event- Driven Programming 4349Book.fm Page 1 Friday, December 16, 2005 1:33 AM Part 1 GUI Design and Event- Driven Programming This Section: Chapter 1: Getting Started with Visual Basic 2005 Chapter 2: Visual Basic: The Language

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