Excel VBATutorial          


Excel VBA Macros

Email to excel-vba.com

Excel Tutorial on Macros

 Excel Consulting

Here is a sample of what you will find
in the downloadable 
Tutorial on Excel macros

VBA Coding Tips

When you start assembling VBA words into sentences and paragraphs, it is said that you are coding or developing VBA code. In this lesson you will learn important coding tips and many special VBA words. Here is a  tip and an exercise that will give you an idea of what you will find in the complete lesson 11 of the Downloadable Tutorial on Excel Macros.

Coding Tip 1

Always key in your code in lower case letters. If the spelling is right, the necessary letters will be capitalized.  If no letter gets capitalized .... check your spelling.

Exercise 1-1

Step 1: Open a new workbook in Excel and use the ALT/F11 keys to go to the visual basic editor.

Step 2: In the code window of any of the sheets copy/paste the following macro:

Sub proTest()


End Sub

Notice that there are no capital letters in activecel.cop because both words are misspelled.

Step 3: Add a second "l" to "activecell" and an "y" to "copy" and then click "Enter". The sentence now reads: Activecell.Copy with a capital "A" and a capital "C" because both words are spelled correctly.

You now understand that significant letters are capitalised in each correctly spelled VBA word when you move away from the line.

Step 5: Close Excel without saving anything

We hope you have enjoyed this tip
For more on this topic and a complete course on Excel macros download the
Tutorial on Excel Macros

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.