Excel Macros Section 3: Forms and Controls in VBA for Excel
By Pierre Leclerc.
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 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.
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.
|