Excel Vba
Excel Vba
To organize your discovery of Excel macros, the downloadable Tutorial on Excel Macros is divided
in three sections (all 3 sections part of the single download):
Section 1: Excel Macros Programming (Chapters 1 to 10)
This section is about recording, writing, modifying and testing macros in the Visual Basic Editor. You will also
learn about security and discover "events" (an event is what starts the macro).
Section 2: Excel VBA Vocabulary (Chapters 11 to 23)
Developing a macro is communicating with Excel and to do so you need to use a language called Visual Basic for
Applications (VBA). In section 2 you will learn all the VBA vocabulary that is essential to work with business data
(accounting, sales, production and others).
Section 3: Forms and Controls in VBA for Exce (Chapters 24 to 33)
The userform is a small or large dialog window that you create and allows the user to submit values that will be used
by your macros. To these userforms you will add controls (command buttons, text boxes, list boxes and others) and
program them.
Table of Contents
open in browser PRO version
pdfcrowd.com
pdfcrowd.com
When you develop macros in Excel you spend 20% of your time analyzing the project, 15% writing your VBA
procedures and 65% testing and fine tuning them. Split your screen, use the F8* key and you can see what
your procedure does in Excel step by step. Back up, correct and re-test.
Chapter 7: Excel Macro Recorder
The Macro Recorder is the best teacher and it will be a great assistant (writing code for you) even when you
become an expert at programming in VBA. In this lesson you will learn about the Macro Recorder and you will
try it. You will also run and test the macro that you have recorded.
Chapter 8: Macros Help and Assistance
There is plenty of help and assistance available within Excel when you develop macros. As you have
discovered in the previous lesson the Macro Recorder is a great teacher and assistant. In this lesson we
investigate the two other sources of assistance within the Visual Basic Editor of Excel: the Help Files and the
Object Browser.
Chapter 9: VBA Events
Once you have developed your macros you need to trigger them so that they start. The trigger is called an
event. The most frequently used event is the click on a button. In this lesson you will learn how to add a button
to your sheet and how to connect it to your macro. You will also learn how to start a macro by opening a
workbook (also called spreadsheet or Excel file), by closing a workbook and even by changing the value of a
cell.
Chapter 10: VBA Security and Protection
You cannot harm your computer with macros so be bold in experimenting with macros you will learn more and
faster. In this lesson you will learn how to protect you code, your sheets and your workbooks.
Chapter 11: VBA Coding Tips
Assembling VBA words into sentences is called coding. Here are interesting tips to make things easier when
you start coding.
pdfcrowd.com
pdfcrowd.com
can supply bits of data or say " Yes, No, Ok, Cancel" and other short answers during the execution of a macro.
Chapter 18: Excel VBA Vocabulary to Filter and Sort Data
Excel offers you the most powerful database tools (sorting, filtering, etc...). With VBA these tools become even
more powerful. You will learn how to use them with the data that you extract from large centralized databases
(SAP, Oracle, EssBase, Access, etc..), from accounting and sales programs and with financial data that you
can download from the Internet.
Chapter 19: Working with Variables
The variable is the concept that will launch your creativity and allow you to develop real programs in Excel. It
will empower you to develop sophisticated programs and work extremely rapidly with very large sets of data.
Before learning about variables you develop macros after you develop programs.
Chapter 20: Working with Statements
They are the KILL, the IF_THEN_ELSE_END IF, the SELECT-CASE, the DO_LOOP, the FOR_NEXT....
Chapter 21: Working with Functions
There are Excel functions and VBA functions. Three topics are covered in this lesson. You can use existing
Excel functions within VBA or you can create brand new Excel functions with VBA and you can use VBA
functions.
Chapter 22: Working with external data and SQL
When you connect to outside sources of data (large databases, text files, other Excel workbooks, Access,
etc.) the computer is using SQL (Structured Query Language) a specialized language to work with data. You
can use Excel's functionalities to connect and extract data but you can also use directly the SQL language top
extract data. It is the fastest way to access any external data.
Chapter 23: Working with Windows and other Microsoft Programs FROM Excel
With VBA for Excel you can develop VBA procedures (macros) to work within Excel while calling other
Microsoft programs like Access, Notepad, Word, Project and even Windows.
open in browser PRO version
pdfcrowd.com
pdfcrowd.com
pdfcrowd.com