Excel VBATutorial                       Tutorial on Excel macros

 

Excel VBA Macros

Excel Macros Table of Contents

Excel Visual Basic Editor

Excel Macros Vocabulary

Excel Userforms

Excel Consulting

Excel Tutorial on Macros

Email to excel-vba.com

Excel Macros Section 3: Userforms

In the first section you have discovered the programming environment (Visual Basic Editor and Macro Recorder). In the second section you have learned many useful VBA words (code). After these 2 sections of the downloadable tutorial on Excel macros (VBA) you can use all the macros available for free on the Internet and you can build your own.

In section 3 you will learn how to create customized dialog windows (also called userforms).

When the message box or the input box (that you have discovered in lesson 17) is not enough to communicate with the user you can create your own simple or complex dialog windows like the one below.

Userform in VBA for Excel

In the downloadable tutorial on Excel macros (VBA) you will find everything that you need to develop simple or very complex userforms. On this website you will find a simple exercise (starting in lesson 24 and ending in lesson 28) that will show you how to develop your first userform. The simple form that you will create (image below) will allow a user to enter a value in the first cell of a database.

Userfom in VBA for Excel


Lesson 24: Userforms in VBA for Excel

Lesson 25: Userforms and Controls Properties

Lesson 26: Labels in VBA for Excel

Lesson 27: Text Boxes in VBA for Excel

Lesson 28: Command Button in VBA for Excel

Lesson 29: Combo Boxes in VBA for Excel

Lesson 30: List Boxes in VBA for Excel

Lesson 31: Check Boxes, Frames and Option Buttons

Lesson 32: Spin Buttons

Lesson 33: Image Controls


This website and the downloadable Tutorial on Excel Macros are divided in three sections:

Section 1: Excel Macros Programming: Lessons 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: Lessons 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 Excel: Lessons 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.

 

Excel Tutorial on Macros

Excel VBA Macros

Excel Macros Table of Contents

Excel Visual Basic Editor

Excel Macros Vocabulary

Excel Userforms

Excel Consulting