Visual Basic for Applications
|
|
- Arron Ferguson
- 7 years ago
- Views:
Transcription
1 Visual Basic for Applications (VBA) Goals: ² Familiarity & experience with solving problems algorithmically. ² Familiarity with Visual Basic for Applications (VBA). VBA/Excel dialect. ² Empower you to build useful applications and to learn more on your own. ² Get you comfortable in a programming environment. Note: But you have to do a lot of work on your own! Lectures are to provide you a map. You must make the trip yourself. (cf., VBATutor.xls) File: misnotes-vba-slides-s1999.tex. 1
2 File: misnotes-vba-slides.tex. Created: February 13, Modi ed version of vb ppt. Modi ed: , , See also: VBATutor.xls. File: misnotes-vba-slides-s1999.tex, modi ed February 8,
3 Goals for lecture 1. Assuming: ² Famliarity with the basic concepts of macros in Excel (which are written in VBA). ² Know how to record and run a macro, and examine and edit its code in the Visual Basic Editor. Then: 1. Use the Visual Basic Editor to create a simple VBA program (Sub) and call it for execution from a button on a worksheet. 2. Use the Visual Basic Editor to create a simple VBA program (Function) and call it for execution from a cell in a worksheet. 3. Introduce the core structure of VBA programs. 4. Introduce program variables (cf., Worksheets("Lecture1") code module Lecture1) 2
4 See VBATutor.xls, Worksheets("Lecture1") and code module Lecture1. 2-1
5 Macros ² Programs in VBA. R^ole of VB and VBA for Microsoft. ² What is VBAnExcel good for? { Assembling, \gluing together," applications in MS O±ce. (Larger issue: \component-based applications.") { Utility (small job) programming, e.g., for data preparation and manipulation, for programming the interface,... { For learning how to program. { For prototype programming. { For learning about modern software concepts (e.g., OOP) and development environments (now a good one in Excel for VBA). 3
6 More on macros ² Recording macros { Tools ) Macro ) RecordNew Macro... { Stop, relative addressing { Running the macro: Tools ) Macro ) Macros... { Viewing the macro: Tools ) Macro ) Visual Basic Editor Alt+F11 3-1
7 Recorded macro, called Bob Sub Bob() ' ' Bob Macro ' Macro recorded 2/13/98 by Steven O. Kimbrough ' ' Range("B3:C4").Select Selection.Copy Range("A1").Select ActiveSheet.Paste Application.CutCopyMode = False Range("A1").Select End Sub 4
8 1. This is VBA code written by the macro recorder. You can edit it just as you would code you had written. 2. Later we'll see details of VBA syntax, etc. For now note that, e.g., Range("B3:C4") is an object which has the method Select. Range("B3:C4").Select means \Select the object Range("B3:C4"). But note how readable the code is. 3. Application is also an object (here, Excel itself) but CutCopyMode is not a method. Rather, it is a property, which as it happens can be true or false. Here we are setting this property ofappication to False. 4. In general, think in terms of: Objects which have methods (which do things) and properties (which can have di erent values). Related to object-oriented programming: close but not quite. Still, a pervasive and very useful metaphor in Microsoft O±ce products. 5. Note comment signs. 4-1
9 Basics of Visual Basic for Applications ² VB, VBA, VBAnExcel, VBAnWord,... ² Macro modules ² Subs ² Functions ² Variables & declaring them ² Structure of a VBAnExcel application 5
10 A simple Sub 1. Tools ) Macro ) Visual Basic Editor 2. Insert ) Module (Not: Class Module) 3. View ) Properties Window 4. Then write some code: Sub HelloWorld() MsgBox "Hello world!" End Sub ² Use the VB Help menu item to search on MsgBox. (And use it generally and often!) ² Subs do things, but do not return values. Functions do things, and do return values. 6
11 Note: ² The editor is helpful. Always type lower case and make the editor do the conversion to upper case a good error-prevention strategy. ² Run the macro from the Editor (put the cursor in the code and click the Run button on the menubar) ² Run the macro from Excel (Tools ) Macro ) Macros... ) 6-1
12 Now, make it run from Excel View ) Toolbars ) Control Toolbox 2. Select and draw a button. 3. Right-click with the button selected ) Properties. Set the properties as desired, then close the Property Window. 4. Right-click the button selected ) View Code 5. Add a call tohelloword: Private Sub cmdhellowold_click() HelloWorld End Sub 6. Return to Excel, exit design mode, and click the button. 7
13 A simple Function 1. Tools ) Macro ) Visual Basic Editor 2. Select a code module, e.g., the one with Sub HelloWord. 3. Add code and save work: Function dblutility(x, Hi, Lo, Risk) As Double dblutility = ((X - Lo) / (Hi - Lo)) ^ Risk End Function 4. Return to Excel and use this function in a cell, just as any built-in Excel function. 8
14 Try these procedures in a code module: Function dblcubed(x As Double) As Double dblcubed = X ^ 3 End Function Sub CubeMe() Dim dbldanumber As Double dbldanumber = _ InputBox("What number " & _ "would you like to cube?") dbldanumber = dblcubed(dbldanumber) MsgBox "And the answer is " & dbldanumber End Sub ² Dim dbldanumber As Double declares (Dimensions) the program variable dbldanumber as type Double (precision oating point). ² for line continuations. & for string concatenation. 9
15 VBAnExcel Programs. Are collections of Subs andfunctions (and Declarations). Typically they: 1. Are called (started) from Excel. 2. Read in information. From, e.g., worksheets, dialog boxes, les, databases. 3. Store this information in variables. 4. Computationally manipulate the variables. 5. Write out the information. To., e.g., worksheets, dialog boxes, les, databases. Basic concepts at hand, details now follow. 10
16 Recall: VBAnExcel Programs. Are collections of Subs andfunctions (and Declarations). Typically they: 1. Are called (started) from Excel. 2. Read in information. From, e.g., worksheets, dialog boxes, les, databases. 3. Store this information in variables. 4. Computationally manipulate the variables. 5. Write out the information. To., e.g., worksheets, dialog boxes, les, databases. 11
17 Variables Expressions (think of names) in programs that can hold di erent values at di erent times. ² X, Hi, Lo, Risk in thedblutility function. Option Explicit Sub FirstVariableExample() Dim I As Integer Dim MyFirstVariable As Integer 'Note: Dim I, MyFirstVariable as Integer ' leaves I an Integer and MyFirstVariable ' as a Variant. Thanks, Bill! MyFirstVariable = 3 For I = 1 To MyFirstVariable MsgBox "Showing and counting: " & I Next I End Sub 12
18 Variables have data types ² Types: { Integer, Long { Single, Double { Currency { Date { String { Variant ² Why? ² Look them up in the VBA online help. 13
19 Programs (in general, I emphasize): ² Declare variables ² Put values into variables ² Make calculations with variables ² Store results of calculations in variables Also (especially in VBA) they: ² Manipulate application objects: call methods, read and alter properties 14
20 Declaring variables (in VBA) ² Variables should always be declared. { Why? { Variant if not declared. { Use Option Explicit in the declarations section to force declaration of variables. ² Variables have scope. Why? ² Declaring variables { Dim in a procedure. Scope: that procedure. { Private (or Dim) in the declarations section of a module. Scope: that module. { Public in the declarations secion of a module. Scope: entire application. 15
21 Value(s) of MySecondVariable? Option Explicit Private MySecondVariable As Integer Sub PublicExample1() MsgBox "We're in PublicExample1 " & _ "and MySecondVariable = " & _ MySecondVariable End Sub Sub PublicExample2() MySecondVariable = 23 MsgBox "We're in PublicExample2 " & _ "and MySecondVariable = " & _ MySecondVariable End Sub 16
22 1. Run PublicExample1 using the Run button in the VBA editor. MySecondVariable = Run PublicExample2 using the Run button in the VBA editor. MySecondVariable = Run PublicExample1 using the Run button in the VBA editor. MySecondVariable = Now Reset and try again (MySecondVariable = 0). Discuss. Emphasize that while VBA has automatically initialized MySecondVariable to 0, it's a bad idea to leave this to VBA. Always initialize variables yourself! 16-1
23 Reading from, and writing to, a worksheet Sub CosineHardWired() Dim MyNumber As Double MyNumber = _ Worksheets("Lecture2").Cells(9, 2).Value 'Note: Cells(9,2) = row 9, column 2 of the 'worksheet. Worksheets("Lecture2").Cells(11, 2).Value = _ Cos(MyNumber) 'This also works: 'Worksheets("Lecture2").Range("B11").Value = _ 'Cos(MyNumber) 'And suppose MyTestRange is defined B2:D13. 'Then this works, too: 'With Worksheets("Lecture2").Range("MyTestRange") '.Cells(10, 1).Value = Cos(MyNumber) 'End With End Sub Try a nonnumber in B9. Debug. Reset button. Later: the debugger. 17
24 1. Suppose a single cell has a name, Bob. then Worksheets("Lecture2").Range("Bob").Value = Cos(MyNumber) also works. 17-1
25 Goals for lecture Say a word or two more on program variables and how to declare them. 2. Discuss and show how in VBAnExcel to read and write information from and to worksheets. 3. Brie y introduce the Object Browser. 4. Do VBA Homework #1 (handed out today) as an in-class exercise with discussion! (cf., Worksheets("Lecture2") code module Lecture2) 18
26 Generalizing on reading & writing ² Reading & writing the Excel worksheet are special cases of getting and setting object properties. ² So far, the Value property of a particular object, a particular cell. ² Why not, say, the color of a cell? Sub SimpleShowColor() Dim MyTempHolder As Variant MyTempHolder = _ Worksheets(2).Cells(14, 2).Interior.ColorIndex MsgBox "The interior color of B14 is " _ & MyTempHolder & "." End Sub LOTS of objects and properties in Excel. 19
27 Generalizing on reading & writing (con't.) Sub GetTheWorksheetName() Dim Temp As String Temp = Range("CellBob").Worksheet.Name MsgBox "The name of the worksheet in which " & _ "the range CellBob resides is " & Temp End Sub Sub RenameMeTheWorksheet() Dim Temp As String Temp = _ InputBox("New name for this worksheet?") ActiveSheet.Name = Temp End Sub 20
28 The object browser, F2 in the VBA Editor ² Displays, and lets you explore, all available objects, methods, and properties. Nifty! member = (method _ property) ² Right-click on a member. Your code. Excel's code. ² Example: Look in Excel, Range class, Cells member (a property). Call for help. 21
29 The Object Browser (con't.) A word to the wise: Be ever vigilant. No program documentation is ever complete or completely accurate and the VBA on-line Help is no exception. Some of the descriptions are just plain wrong. Some of the code samples don't work. Any many, many \gotchas" are left unexplored. Still, if you take the documentation with a small grain of salt, you'll nd an enourmous amount of important information there. And the easiest way to get to the information is via the Object Browser. from Excel 97 Annoyances, p
30 Using VBA subs and functions in other workbooks Question: Can you use VBA macros from another workbook (without copying them)? Answer: Yes. Be sure the other workbook is open (running). Preface your macro calls with the name of the other workbook followed by a bang (!). For example, if the other workbook is theotherworkbook.xls and you want to call a function there, named theotherfunction and that function takes one argument, an integer, then you might write =theotherworkbook.xls!theotherfunction(17) in one of the cells in your workbook. 23
31 And now... Take a look at VBA Homework #1, handed out today. 24
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 informationWriting Macros in Microsoft Excel 2003
Writing Macros in Microsoft Excel 2003 Introduction A macro is a series of instructions which can be issued using a single command. The macro can be invoked in various different ways - from the keyboard
More informationExcel & Visual Basic for Applications (VBA)
Excel & Visual Basic for Applications (VBA) The VBA Programming Environment Recording Macros Working with the Visual Basic Editor (VBE) 1 Why get involved with this programming business? If you can't program,
More informationExcel & Visual Basic for Applications (VBA)
Excel & Visual Basic for Applications (VBA) Object-oriented programming (OOP) Procedures: Subs and Functions, layout VBA: data types, variables, assignment 1 Traits of Engineers Florman s Engineering View
More informationRIT Installation Instructions
RIT User Guide Build 1.00 RIT Installation Instructions Table of Contents Introduction... 2 Introduction to Excel VBA (Developer)... 3 API Commands for RIT... 11 RIT API Initialization... 12 Algorithmic
More informationEXCEL VBA ( MACRO PROGRAMMING ) LEVEL 1 21-22 SEPTEMBER 2015 9.00AM-5.00PM MENARA PJ@AMCORP PETALING JAYA
EXCEL VBA ( MACRO PROGRAMMING ) LEVEL 1 21-22 SEPTEMBER 2015 9.00AM-5.00PM MENARA PJ@AMCORP PETALING JAYA What is a Macro? While VBA VBA, which stands for Visual Basic for Applications, is a programming
More informationWorking with Macros and VBA in Excel 2007
Working with Macros and VBA in Excel 2007 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
More information1. a procedure that you perform frequently. 2. Create a command. 3. Create a new. 4. Create custom for Excel.
Topics 1 Visual Basic Application Macro Language What You Can Do with VBA macro Types of VBA macro Recording VBA macros Example: MyName () If-Then statement Example: CheckCell () For-Next Loops Example:
More informationUnleashing Hidden Powers of Inventor with the API Part 1. Getting Started with Inventor VBA Hello Inventor!
Unleashing Hidden Powers of Inventor with the API Part 1. Getting Started with Inventor VBA Hello Inventor! Brian Ekins Autodesk, Inc. This article provides an introduction to Inventor's VBA programming
More informationEasy Map Excel Tool USER GUIDE
Easy Map Excel Tool USER GUIDE Overview Easy Map tool provides basic maps showing customized data, by Ontario health unit geographies. This tool will come in handy especially when there is no dedicated
More informationHands-on Exercise 1: VBA Coding Basics
Hands-on Exercise 1: VBA Coding Basics This exercise introduces the basics of coding in Access VBA. The concepts you will practise in this exercise are essential for successfully completing subsequent
More informationProgramming in Access VBA
PART I Programming in Access VBA In this part, you will learn all about how Visual Basic for Applications (VBA) works for Access 2010. A number of new VBA features have been incorporated into the 2010
More informationSample Table. Columns. Column 1 Column 2 Column 3 Row 1 Cell 1 Cell 2 Cell 3 Row 2 Cell 4 Cell 5 Cell 6 Row 3 Cell 7 Cell 8 Cell 9.
Working with Tables in Microsoft Word The purpose of this document is to lead you through the steps of creating, editing and deleting tables and parts of tables. This document follows a tutorial format
More informationMigrating to Excel 2010 from Excel 2003 - Excel - Microsoft Office 1 of 1
Migrating to Excel 2010 - Excel - Microsoft Office 1 of 1 In This Guide Microsoft Excel 2010 looks very different, so we created this guide to help you minimize the learning curve. Read on to learn key
More informationVBA PROGRAMMING FOR EXCEL FREDRIC B. GLUCK 608-698-6304
VBA PROGRAMMING FOR EXCEL FREDRIC B. GLUCK FGLUCK@MADISONCOLLEGE.EDU FBGLUCK@GMAIL.COM 608-698-6304 Text VBA and Macros: Microsoft Excel 2010 Bill Jelen / Tracy Syrstad ISBN 978-07897-4314-5 Class Website
More informationLabVIEW Report Generation Toolkit for Microsoft Office User Guide
LabVIEW Report Generation Toolkit for Microsoft Office User Guide Version 1.1 Contents The LabVIEW Report Generation Toolkit for Microsoft Office provides tools you can use to create and edit reports in
More informationDatabase Automation using VBA
Database Automation using VBA UC BERKELEY EXTENSION MICHAEL KREMER, PH.D. E-mail: access@ucb-access.org Web Site: www.ucb-access.org Copyright 2010 Michael Kremer All rights reserved. This publication,
More informationLike any function, the UDF can be as simple or as complex as you want. Let's start with an easy one...
Building Custom Functions About User Defined Functions Excel provides the user with a large collection of ready-made functions, more than enough to satisfy the average user. Many more can be added by installing
More informationIntroduction. Why (GIS) Programming? Streamline routine/repetitive procedures Implement new algorithms Customize user applications
Introduction Why (GIS) Programming? Streamline routine/repetitive procedures Implement new algorithms Customize user applications 1 Computer Software Architecture Application macros and scripting - AML,
More informationFinal Exam Review: VBA
Engineering Fundamentals ENG1100 - Session 14B Final Exam Review: VBA 1 //coe/dfs/home/engclasses/eng1101/f03/ethics/en1.e05.finalcoursewrapup.sxi Final Programming Exam Topics Flowcharts Assigning Variables
More informationAutomating @RISK with VBA
Automating @RISK with VBA The purpose of this document is to introduce the @RISK Excel Developer Kit (XDK) and explain how you can use VBA to automate @RISK. 1 The term automate simply means that you write
More informationMicrosoft VBA Programming
Microsoft VBA Programming Audience Description Objectives Length This course is intended for the person who has a strong familiarity with Microsoft,, and and who would like to begin learning how to automate
More informationHow to test and debug an ASP.NET application
Chapter 4 How to test and debug an ASP.NET application 113 4 How to test and debug an ASP.NET application If you ve done much programming, you know that testing and debugging are often the most difficult
More informationThe FTS Interactive Trader lets you create program trading strategies, as follows:
Program Trading The FTS Interactive Trader lets you create program trading strategies, as follows: You create the strategy in Excel by writing a VBA macro function The strategy can depend on your position
More informationUSC Marshall School of Business Marshall Information Services
USC Marshall School of Business Marshall Information Services Excel Dashboards and Reports The goal of this workshop is to create a dynamic "dashboard" or "Report". A partial image of what we will be creating
More informationVisual Basic Programming for Excel
Visual Basic Programming for Excel Zhenming Su, Ph.D. Institute for Fisheries Research 212 Museums Annex Building 1109 N. University Ave. Ann Arbor, MI 48109-1084 USA Phone: (734) 663-3554 Ext. 123 Fax:
More informationLabVIEW Report Generation Toolkit for Microsoft Office
USER GUIDE LabVIEW Report Generation Toolkit for Microsoft Office Version 1.1.2 Contents The LabVIEW Report Generation Toolkit for Microsoft Office provides VIs and functions you can use to create and
More informationModule 2 - Multiplication Table - Part 1-1
Module 2 - Multiplication Table - Part 1 TOPICS COVERED: 1) VBA and VBA Editor (0:00) 2) Arrays (1:15) 3) Creating a Multiplication Table (2:34) 4) TimesTable Subroutine (3:08) 5) Improving Efficiency
More informationFinancial Data Access with SQL, Excel & VBA
Computational Finance and Risk Management Financial Data Access with SQL, Excel & VBA Guy Yollin Instructor, Applied Mathematics University of Washington Guy Yollin (Copyright 2012) Data Access with SQL,
More informationIntroduction. Syntax Statements. Colon : Line Continuation _ Conditions. If Then Else End If 1. block form syntax 2. One-Line syntax. Do...
3 Syntax Introduction Syntax Statements Colon : Line Continuation _ Conditions If Then Else End If 1. block form syntax 2. One-Line syntax Select Case Case Case Else End Select Do...Loop For...Next While...Wend
More informationExcel basics. Before you begin. What you'll learn. Requirements. Estimated time to complete:
Excel basics Excel is a powerful spreadsheet and data analysis application, but to use it most effectively, you first have to understand the basics. This tutorial introduces some of the tasks and features
More informationIntroduction to Microsoft Access 2003
Introduction to Microsoft Access 2003 Zhi Liu School of Information Fall/2006 Introduction and Objectives Microsoft Access 2003 is a powerful, yet easy to learn, relational database application for Microsoft
More informationGetting Started. Tutorial RIT API
Note: RIT s Application Programming Interface (API) is implemented in RIT versions 1.4 and higher. The following instructions will not work for versions prior to RIT Client 1.4. Getting Started Rotman
More informationMicrosoft Excel 2013 Tutorial
Microsoft Excel 2013 Tutorial TABLE OF CONTENTS 1. Getting Started Pg. 3 2. Creating A New Document Pg. 3 3. Saving Your Document Pg. 4 4. Toolbars Pg. 4 5. Formatting Pg. 6 Working With Cells Pg. 6 Changing
More informationSiemens Applied Automation Page 1 11/26/03 9:57 PM. Maxum ODBC 3.11
Siemens Applied Automation Page 1 Maxum ODBC 3.11 Table of Contents Installing the Polyhedra ODBC driver... 2 Using ODBC with the Maxum Database... 2 Microsoft Access 2000 Example... 2 Access Example (Prior
More informationMicrosoft Excel 2013: Using a Data Entry Form
Microsoft Excel 2013: Using a Data Entry Form Using Excel's built in data entry form is a quick and easy way to enter data into an Excel database. Using the form allows you to: start a new database table
More informationMS Excel. Handout: Level 2. elearning Department. Copyright 2016 CMS e-learning Department. All Rights Reserved. Page 1 of 11
MS Excel Handout: Level 2 elearning Department 2016 Page 1 of 11 Contents Excel Environment:... 3 To create a new blank workbook:...3 To insert text:...4 Cell addresses:...4 To save the workbook:... 5
More informationWhat is Microsoft Excel?
What is Microsoft Excel? Microsoft Excel is a member of the spreadsheet family of software. Spreadsheets allow you to keep track of data, create charts based from data, and perform complex calculations.
More informationAutomate tasks with Visual Basic macros
Automate tasks with Visual Basic macros If you're not familiar with macros, don't let the term frighten you. A macro is simply a recorded set of keystrokes and instructions that you can use to automate
More informationSPV Reporting Tool VBA Code User Guide. Last Updated: December, 2009
SPV Reporting Tool VBA Code User Guide Last Updated: December, 2009 SPV Reporting Tool Excel VBA Functionalities Golden Copy Golden Copy - Introduction This portion of the User Guide will go through troubleshooting
More informationConstruction Administrators Work Smart with Excel Programming and Functions. OTEC 2014 Session 78 Robert Henry
Construction Administrators Work Smart with Excel Programming and Functions OTEC 2014 Session 78 Robert Henry Cell References C O P Y Clicking into the Formula Bar or the Active Cell will cause color coded
More informationQ&As: Microsoft Excel 2013: Chapter 2
Q&As: Microsoft Excel 2013: Chapter 2 In Step 5, why did the date that was entered change from 4/5/10 to 4/5/2010? When Excel recognizes that you entered a date in mm/dd/yy format, it automatically formats
More informationTo add a data form to excel - you need to have the insert form table active - to make it active and add it to excel do the following:
Excel Forms A data form provides a convenient way to enter or display one complete row of information in a range or table without scrolling horizontally. You may find that using a data form can make data
More informationExcel macros made easy
IT Training Excel macros made easy Jane Barrett, IT Training & Engagement Team Information System Services Version 1.1 Scope Learning outcomes Understand the concept of what a macro is and what it does.
More informationIntegrating Microsoft Word with Other Office Applications
Integrating Microsoft Word with Other Office Applications The Learning Center Staff Education 257-79226 http://www.mc.uky.edu/learningcenter/ Copyright 2006 Objectives After completing this course, you
More informationReport Generator Manual
Report Generator Manual Contents: Copyright 1999-2008, Chris Farmer, All Rights Reserved What is it? What does it do? How to Edit the template to create a personalised Report form What do you need to be
More informationCreating Applications using Excel Macros/Visual Basic for Applications (VBA)
Creating Applications using Excel Macros/Visual Basic for Applications (VBA) A macro is a sequence of instructions that tells Microsoft Excel what to do. These macros allow you to automate everyday tasks
More informationHighline Excel 2016 Class 26: Macro Recorder
Highline Excel 2016 Class 26: Macro Recorder Table of Contents Macro Recorder Examples in this video... 2 1) Absolute Reference Macro: Format report that always has the same number of columns and rows...
More informationWord 2010: Mail Merge to Email with Attachments
Word 2010: Mail Merge to Email with Attachments Table of Contents TO SEE THE SECTION FOR MACROS, YOU MUST TURN ON THE DEVELOPER TAB:... 2 SET REFERENCE IN VISUAL BASIC:... 2 CREATE THE MACRO TO USE WITHIN
More informationMacros in Word & Excel
Macros in Word & Excel Description: If you perform a task repeatedly in Word or Excel, you can automate the task by using a macro. A macro is a series of steps that is grouped together as a single step
More informationOverview of sharing and collaborating on Excel data
Overview of sharing and collaborating on Excel data There are many ways to share, analyze, and communicate business information and data in Microsoft Excel. The way that you choose to share data depends
More informationMicrosoft Excel 2007. Introduction to Microsoft Excel 2007
Microsoft Excel 2007 Introduction to Microsoft Excel 2007 Excel is an electronic spreadsheet to organize your data into rows and columns. One can use it to perform basic to advanced level mathematical
More informationMicrosoft Excel 2010. Understanding the Basics
Microsoft Excel 2010 Understanding the Basics Table of Contents Opening Excel 2010 2 Components of Excel 2 The Ribbon 3 o Contextual Tabs 3 o Dialog Box Launcher 4 o Quick Access Toolbar 4 Key Tips 5 The
More informationCreating Datalogging Applications in Microsoft Excel
Creating Datalogging Applications in Microsoft Excel Application Note 1557 Table of contents Introduction 2 Steps for creating a scanning program 2 Using Excel for datalogging 4 Running the application
More informationThe FTS Real Time System lets you create algorithmic trading strategies, as follows:
Algorithmic Trading The FTS Real Time System lets you create algorithmic trading strategies, as follows: You create the strategy in Excel by writing a VBA macro function The strategy can depend on your
More informationTo create a histogram, you must organize the data in two columns on the worksheet. These columns must contain the following data:
You can analyze your data and display it in a histogram (a column chart that displays frequency data) by using the Histogram tool of the Analysis ToolPak. This data analysis add-in is available when you
More informationSection 1: Ribbon Customization
WHAT S NEW, COMMON FEATURES IN OFFICE 2010 2 Contents Section 1: Ribbon Customization... 4 Customizable Ribbon... 4 Section 2: File is back... 5 Info Tab... 5 Recent Documents Tab... 7 New Documents Tab...
More informationThis chapter is completely devoid of any hands-on training material. It
In This Chapter Gaining a conceptual overview of VBA Finding out what you can do with VBA Chapter 1 What Is VBA? Discovering the advantages and disadvantages of using VBA Taking a mini-lesson on the history
More informationMS Access Lab 2. Topic: Tables
MS Access Lab 2 Topic: Tables Summary Introduction: Tables, Start to build a new database Creating Tables: Datasheet View, Design View Working with Data: Sorting, Filtering Help on Tables Introduction
More informationTips and Tricks SAGE ACCPAC INTELLIGENCE
Tips and Tricks SAGE ACCPAC INTELLIGENCE 1 Table of Contents Auto e-mailing reports... 4 Automatically Running Macros... 7 Creating new Macros from Excel... 8 Compact Metadata Functionality... 9 Copying,
More informationSHA 6050 Solver and VBA Lab
SHA 6050 Solver and VBA Lab In this lab you will be using macros to run Excel Solver. You will also use some basic tools in Visual Basic. Open 605_LP_Solver_Lab.xls. You will find a typical linear programming
More informationA Concise Guide for Beginners LIEW VOON KIONG
I A Concise Guide for Beginners LIEW VOON KIONG Disclaimer II Excel VBA Made Easy- A Concise Guide for Beginners is an independent publication and is not affiliated with, nor has it been authorized, sponsored,
More informationwarpct.com Working with MS Excel 2003 Workbook courseware by WARP! Computer Training
warpct.com courseware by WARP! Computer Training Working with MS Excel 2003 Workbook Welcome! Thank you for evaluating a portion of this workbook. If you have any questions or comments regarding our training
More informationFormulas & Functions in Microsoft Excel
Formulas & Functions in Microsoft Excel Theresa A Scott, MS Biostatistician II Department of Biostatistics Vanderbilt University theresa.scott@vanderbilt.edu Table of Contents 1 Introduction 1 1.1 Using
More informationVisual Basic: Objects and collections
: Objects and collections is an (OO) object-oriented language. Performing a task in (VB) or for Applications (VBA) involves manipulating various types of objects, each of which may have several different
More informationExcel Reporting with 1010data
Excel Reporting with 1010data (212) 405.1010 info@1010data.com Follow: @1010data www.1010data.com Excel Reporting with 1010data Contents 2 Contents Overview... 3 Start with a 1010data query... 5 Running
More informationVisual Basic - Modules and Procedures
Visual Basic - Modules and Procedures Introduction A procedure is a unit of code enclosed either between the Sub and statements or between the Function and statements. A procedure should accomplish a simple
More informationEXCEL FINANCIAL USES
EXCEL FINANCIAL USES Table of Contents Page LESSON 1: FINANCIAL DOCUMENTS...1 Worksheet Design...1 Selecting a Template...2 Adding Data to a Template...3 Modifying Templates...3 Saving a New Workbook as
More information3. (1.0 point) To ungroup worksheets, you can click a sheet of a sheet not in the group. a. index b. panel c. tab d. pane
Excel Tutorial 6 1. (1.0 point) To select adjacent worksheets, you use the key. a. Shift b. Alt c. Ctrl d. F1 2. (1.0 point) The caption indicates a worksheet group. a. [Worksheets] b. [Selected Sheets]
More informationMail Merge Creating Mailing Labels 3/23/2011
Creating Mailing Labels in Microsoft Word Address data in a Microsoft Excel file can be turned into mailing labels in Microsoft Word through a mail merge process. First, obtain or create an Excel spreadsheet
More informationMacros allow you to integrate existing Excel reports with a new information system
Macro Magic Macros allow you to integrate existing Excel reports with a new information system By Rick Collard Many water and wastewater professionals use Microsoft Excel extensively, producing reports
More informationEXCEL Tutorial: How to use EXCEL for Graphs and Calculations.
EXCEL Tutorial: How to use EXCEL for Graphs and Calculations. Excel is powerful tool and can make your life easier if you are proficient in using it. You will need to use Excel to complete most of your
More informationExcel 2007 Basic knowledge
Ribbon menu The Ribbon menu system with tabs for various Excel commands. This Ribbon system replaces the traditional menus used with Excel 2003. Above the Ribbon in the upper-left corner is the Microsoft
More informationMicrosoft Migrating to Word 2010 from Word 2003
In This Guide Microsoft Word 2010 looks very different, so we created this guide to help you minimize the learning curve. Read on to learn key parts of the new interface, discover free Word 2010 training,
More informationSPSS: Getting Started. For Windows
For Windows Updated: August 2012 Table of Contents Section 1: Overview... 3 1.1 Introduction to SPSS Tutorials... 3 1.2 Introduction to SPSS... 3 1.3 Overview of SPSS for Windows... 3 Section 2: Entering
More informationMS WORD 2007 (PC) Macros and Track Changes Please note the latest Macintosh version of MS Word does not have Macros.
MS WORD 2007 (PC) Macros and Track Changes Please note the latest Macintosh version of MS Word does not have Macros. Record a macro 1. On the Developer tab, in the Code group, click Record Macro. 2. In
More informationMicrosoft Office Access 2007 Basics
Access(ing) A Database Project PRESENTED BY THE TECHNOLOGY TRAINERS OF THE MONROE COUNTY LIBRARY SYSTEM EMAIL: TRAININGLAB@MONROE.LIB.MI.US MONROE COUNTY LIBRARY SYSTEM 734-241-5770 1 840 SOUTH ROESSLER
More informationMAS 500 Intelligence Tips and Tricks Booklet Vol. 1
MAS 500 Intelligence Tips and Tricks Booklet Vol. 1 1 Contents Accessing the Sage MAS Intelligence Reports... 3 Copying, Pasting and Renaming Reports... 4 To create a new report from an existing report...
More informationVB.NET Programming Fundamentals
Chapter 3 Objectives Programming Fundamentals In this chapter, you will: Learn about the programming language Write a module definition Use variables and data types Compute with Write decision-making statements
More informationVisual Basic for Applications - Programming Excel. Michael Schacht Hansen
Visual Basic for Applications - Programming Excel Michael Schacht Hansen October 6, 2002 Contents 1 Introduction 3 1.1 Purpose................................ 3 1.2 Who should participate.......................
More informationAssembling a Watershed Mailing List
Appendix 2 Assembling a Watershed Mailing List Locating Sources for Watershed Resident and Landowner Addresses Track down the addresses of the watershed residents and landowners using the following tools:
More informationExcel & Visual Basic for Applications (VBA)
Excel & Visual Basic for Applications (VBA) user interfaces o on-sheet buttons o toolbar buttons and custom toolbars o custom menus o InputBox and MsgBox functions o userforms 1 On-Sheet Buttons 1) use
More informationFig. 1 The finished UserForm project.
Build a UserForm for Excel Introduction A UserForm is a custom-built dialog box that you build using the Visual Basic Editor. Whilst this example works in Excel you can use the same techniques to create
More informationProgramming Excel Macros
Programming Excel Macros R. Jason Weiss Development Dimensions International After my previous article on creating forms in Excel (Weiss, 2004) came out, I received some e-mail asking for more information
More informationPart 1: An Introduction
Computer Programming in Excel VBA Part 1: An Introduction by Kwabena Ofosu, Ph.D., P.E., PTOE Abstract This course is the first of a four-part series on computer programming in Excel Visual Basic for Applications
More informationMicrosoft Excel 2013: Macro to apply Custom Margins, Titles, Gridlines, Autofit Width & Add Macro to Quick Access Toolbar & How to Delete a Macro.
Microsoft Excel 2013: Macro to apply Custom Margins, Titles, Gridlines, Autofit Width & Add Macro to Quick Access Toolbar & How to Delete a Macro. Do you need to always add gridlines, bold the heading
More informationPULSE Automation programming in Visual Basic. From BK training lectures arranged by Jiří Tůma & Radovan Zadražil
PULSE Automation programming in Visual Basic From BK training lectures arranged by Jiří Tůma & Radovan Zadražil OLE Automation, general principles Bruno S. Larsen PULSE Software Development Agenda Overview
More informationAdd an Audit Trail to your Access Database
Add an to your Access Database Published: 22 April 2013 Author: Martin Green Screenshots: Access 2010, Windows 7 For Access Versions: 2003, 2007, 2010 About This Tutorial My Access tutorials are designed
More informationAccess Tutorial 1 Creating a Database
Access Tutorial 1 Creating a Database Microsoft Office 2013 Objectives Session 1.1 Learn basic database concepts and terms Start and exit Access Explore the Microsoft Access window and Backstage view Create
More informationTo launch the Microsoft Excel program, locate the Microsoft Excel icon, and double click.
EDIT202 Spreadsheet Lab Assignment Guidelines Getting Started 1. For this lab you will modify a sample spreadsheet file named Starter- Spreadsheet.xls which is available for download from the Spreadsheet
More informationUsing the Advanced Tier Data Collection Tool. A Troubleshooting Guide
Using the Advanced Tier Data Collection Tool A Troubleshooting Guide Table of Contents Mouse Click the heading to jump to the page Enable Content/ Macros... 4 Add a new student... 6 Data Entry Screen...
More informationA Microsoft Access Based System, Using SAS as a Background Number Cruncher David Kiasi, Applications Alternatives, Upper Marlboro, MD
AD006 A Microsoft Access Based System, Using SAS as a Background Number Cruncher David Kiasi, Applications Alternatives, Upper Marlboro, MD ABSTRACT In Access based systems, using Visual Basic for Applications
More informationRelease Document Version: 1.4-2013-05-30. User Guide: SAP BusinessObjects Analysis, edition for Microsoft Office
Release Document Version: 1.4-2013-05-30 User Guide: SAP BusinessObjects Analysis, edition for Microsoft Office Table of Contents 1 About this guide....6 1.1 Who should read this guide?....6 1.2 User profiles....6
More informationIn This Issue: Excel Sorting with Text and Numbers
In This Issue: Sorting with Text and Numbers Microsoft allows you to manipulate the data you have in your spreadsheet by using the sort and filter feature. Sorting is performed on a list that contains
More informationAccess Tutorial 13: Event-Driven Programming Using Macros
Access Tutorial 13: Event-Driven Programming Using Macros 13.1 Introduction: What is eventdriven programming? In conventional programming, the sequence of operations for an application is determined by
More informationNational Database System (NDS-32) Macro Programming Standards For Microsoft Word Annex - 8
National Database System () Macro Programming Standards For Microsoft Word Annex - 8 02/28/2000 /10:23 AM ver.1.0.0 Doc. Id: RNMSWS softcopy : word page : 1/6 Objectives A well-defined system needs to
More informationCREATING FORMAL REPORT. using MICROSOFT WORD. and EXCEL
CREATING a FORMAL REPORT using MICROSOFT WORD and EXCEL TABLE OF CONTENTS TABLE OF CONTENTS... 2 1 INTRODUCTION... 4 1.1 Aim... 4 1.2 Authorisation... 4 1.3 Sources of Information... 4 2 FINDINGS... 4
More informationP R E M I E R. Microsoft Excel 2007 VBA (Macros) Premier Training Limited 4 Ravey Street London EC2A 4QP Telephone +44 (0)20 7729 1811 www.premcs.
P R E M I E R Microsoft Excel 2007 VBA (Macros) Premier Training Limited 4 Ravey Street London EC2A 4QP Telephone +44 (0)20 7729 1811 www.premcs.com TABLE OF CONTENTS Excel 2007 VBA INTRODUCTION... 1 MODULE
More informationExcel Formatting: Best Practices in Financial Models
Excel Formatting: Best Practices in Financial Models Properly formatting your Excel models is important because it makes it easier for others to read and understand your analysis and for you to read and
More informationNetezza Workbench Documentation
Netezza Workbench Documentation Table of Contents Tour of the Work Bench... 2 Database Object Browser... 2 Edit Comments... 3 Script Database:... 3 Data Review Show Top 100... 4 Data Review Find Duplicates...
More information