Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword or section
Like this
2Activity

Table Of Contents

ANTICIPATED USER SKILL REQUIREMENTS
COPYRIGHT ACKNOWLEDGMENTS
What is VBA?
VBA: AN EVENT DRIVEN LANGUAGE
VBA: AN OBJECT-BASED LANGUAGE
The Excel VBA IDE
Figure 1 Excel VBA IDE - No Code Module Displayed
GETTING TO THE VBA IDE
Figure 2 Open the VBE from the Excel Tools Menu
Figure 4 The VBE [View] Menu Item Expanded
TO BE EXPLICIT OR NOT
Figure 5 Option Explicit in Effect
Figure 6 Setting Option Explicit Directive: Step 1
Types of Code Modules
GENERAL PURPOSE CODE MODULES
Figure 8 Insert a New General Purpose Code Module
WORKBOOK CODE MODULES
Workbook Events
Figure 10 Working in the Workbook Code Module
WORKSHEET CODE MODULES
Worksheet Events
Figure 11 Viewing the Worksheet Event List
CLASS AND USERFORM MODULES
Class Modules
UserForms and their Modules
Procedures: Function and Sub
FUNCTIONS
SUBS
PROCEDURES: PUBLIC OR PRIVATE
Constants, Variables and Typing
DATA TYPES
OUR FIRST PROCEDURE
Figure 12 The VBE Debug Menu
Figure 13 MyFirstProcedure Results
RESERVED WORDS
COMMENTS AND REMARKS
ERROR HANDLING: A BEGINNING
Figure 14 BOOM! Unhandled Errors Are a Pain
CONSTANT AND VARIABLE DECLARATIONS REVISITED
Procedure Level Scope
Module Level Scope
Public Scope
When to Use Constants and/or Variables
Good Programming Practices
WHAT IS GOOD CODE
GOOD PROGRAMMING PRACTICE #2
MORE GOOD PROGRAMMING PRACTICES
DO... LOOPS
DO LOOPS CONTROL SUMMARY
Decision Makers
IF...THEN
IF...THEN...ELSE
IF...THEN...ELSEIF...ELSE
SELECT CASE
Data Sources
DATA FROM WORKSHEETS: INTRO
DATA FROM EXTERNAL SOURCES
USER PROVIDED DATA
INPUT USING INPUTBOX$()
Figure 16 InputBox$() Example
Figure 17 InputBox$() Validation Failed Message
USING MSGBOX$ AS USER INPUT
Figure 18 Plain Vanilla MsgBox$() Displayed
Figure 19 MsgBox Used to Obtain User Input
USERFORM AS A DATA SOURCE
Figure 20 Multi-Control UserForm
Figure 21 UserForm With Text Entry Boxes
DATA FROM WORKSHEETS: A STUDY
Project 1: Copy Between Workbooks
DATA FROM TEXT FILES: A STUDY
Project 2: Importing Data from a Text file
Programming With Excel Objects
ADVANTAGES OF USING OBJECT REFERENCES
PERFORMANCE IMPROVEMENTS USING OBJECT REFERENCES
THE EXCEL OBJECT MODEL AS A REFERENCE
Code Snippets and Examples
SORTING A RANGE
FIND THE LAST USED CELL IN A COLUMN
Identify the Last Used Row
Identify the Next Available Row
FIND THE FIRST EMPTY CELL IN A COLUMN
GET THE ADDRESS INSTEAD OF THE ROW
FIND THE LAST USED CELL IN A ROW
CONSOLIDATING DATA IN A WORKBOOK
Additional Excel VBA Resources
Excel MVP Websites
RON DEBRUIN’S EXCEL TIPS:
CHIP PEARSON’S EXCEL TIPS:
OZGRIDS FORMULAS W/DOWNLOADS:
JON PELTIER’S CHART TUTORIALS
CHARLES WILLIAMS DECISIONMODELS.COM SITE
TOOLS AND DOWNLOADS BY JAN KAREL PIETERSE
JOHN WALKENBACH FREE EXCEL TIPS
General
Formatting
Formulas
Charts & Graphics
Printing
Developer Tips by Category
General VBA
CommandBars & Menus
UserForms
VBA Functions
0 of .
Results for:
No results containing your search query
P. 1
ProgrammingInExcelVBA_AnIntroduction

ProgrammingInExcelVBA_AnIntroduction

Ratings: (0)|Views: 98|Likes:
Published by oudy525i2000

More info:

Published by: oudy525i2000 on Mar 03, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

03/03/2011

pdf

text

original

You're Reading a Free Preview
Pages 5 to 27 are not shown in this preview.
You're Reading a Free Preview
Pages 32 to 83 are not shown in this preview.

Activity (2)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->