Excel VBATutorial          

             

Excel VBA Macros

Email to excel-vba.com

Excel Tutorial on Macros

 Excel Consulting

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


Userforms in VBA for Excel, Userforms and Controls Properties, Labels in VBA for Excel, Text Boxes in VBA for Excel, Command Button in VBA for Excel, Combo Boxes in VBA for Excel, List Boxes in VBA for Excel, Check Boxes, Frames and Option Buttons, Spin Buttons, Image Controls


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.