150 likes | 307 Views
Visual Basic for Applications. Class III. User Forms. We place controls on User Forms to get input from the user. Common controls include text boxes, command buttons, and check boxes. Forms and controls can both trigger events that our programs can respond to. Controls. Events.
E N D
Visual Basic for Applications Class III
User Forms • We place controls on User Forms to get input from the user. • Common controls include text boxes, command buttons, and check boxes. • Forms and controls can both trigger events that our programs can respond to.
Events • Any action, e.g. clicking a button, opening a form, etc. generates an event. • VBA handles events by sending them to procedures named Object_Event. • Example: If click on a button named cmdPressMe then VBA will try to run a procedure named cmdPressMe_Click