Cover image for Introduction to VBA for Excel
Title:
Introduction to VBA for Excel
Personal Author:
Series:
E Source
Edition:
2nd ed.
Publication Information:
Upper Saddle River : Prentice Hall, c2010
Physical Description:
xvii, 189 p. : ill. ; 26 cm.
ISBN:
9780132396677

Available:*

Library
Item Barcode
Call Number
Material Type
Item Category 1
Status
Searching...
30000010302401 HF5548.4.M523 C43 2010 Open Access Book Book
Searching...

On Order

Summary

Summary

For introductory courses in Engineering and Computer Science .

Teach your students to program and design user interfaces using Excel 2007.

Introduction to VBA for Excel is an introductory text that is designed to instruct engineering and science students on how to develop programs using VBA within the Microsoft Excel environment. It is written for students at all levels and does not assume any previous programming experience.


Author Notes

Steven C. Chapra presently holds the Louis Berger Chair for Computing and Engineering in the Civil and Environmental Engineering Department at Tufts University. Dr. Chapra received engineering degrees from Manhattan College and the University of Michigan. Before joining the faculty at Tufts, he taught at Texas A&M University, the University of Colorado, and Imperial College, London. His research interests focus on surface water-quality modeling and advanced computer applications in environmental engineering. He has published over 50 refereed journal articles, 20 software packages and 6 books. He has received a number of awards including the 1987 ASEE Merriam/Wiley Distinguished Author Award, the 1993 Rudolph Hering Medal, and teaching awards from Texas A&M, the University of Colorado, and the Association of Environmental Engineering and Science Professors.


Table of Contents

1 If You've Never Programmed Before
The Idea of a Program
The Concept of Assignment
Decisions and Loops
A Simple Example
2 Overview of VBA for Excel
The Excel/VBA Environment
An Excel Interface and a VBA Macro Program
Other Ways to Obtain and Display Information
3 Recording Macros
Macro Recording
Absolute and Relative References
Using Macro Recording to Learn about VBA
What Keyboard Macros Can't Do
4 Customized Worksheet Functions
The Idea of a Function
Worksheet Function Macros
5 Modular Programming
Sub Procedures
Function Procedures
More about Procedure Arguments
Passing by Value or by Reference
Static Variables
6 Object-Oriented Programming
Objects, Properties, Methods, and Collections
Using Oop for Input/Output
Learning More about Oop
7 Debugging and Testing
Debugging
The VBA Help Facility
Built-in Debugging Capabilities
Testing
8 Data Typing and Variable Scope
Data Types
Type Declaration
Variable Scope and Lifetime
9 Computations
Computations
Built-in Numeric Functions
10 Strings and Dialog Boxes
String Functions and Manipulations
Message Boxes
Input Boxes
11 Structured Programming: Decisions
Structured Programming
Flowcharts
The If/Then/Else Decision Structure
The If/Then/Elseif Structure
Selected Case Structure
Nesting
Compound Logical Expressions
12 Structured Programming: Lops
Decision Loops (Do/if Exit)
Count-Controlled Loops
Nesting of Loops and Decisions
Recursion
13 Data Structures: Arrays and Records
Arrays
Records
14 Creating and Accessing Files
Sequential Files
Other File Operations
15 Custom Dialogue Boxes
A Simple Custom Dialogue Box
Custom Dialogue Boxes and Modules