Visual Basic for Applications - PowerPoint PPT Presentation

About This Presentation
Title:

Visual Basic for Applications

Description:

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, ... – PowerPoint PPT presentation

Number of Views:32
Avg rating:3.0/5.0
Slides: 16
Provided by: tuck
Category:

less

Transcript and Presenter's Notes

Title: Visual Basic for Applications


1
Visual Basic for Applications
  • Class III

2
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.

3
Controls
4
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

5
Insert UserForm
6
Labels
7
Text Boxes
8
Combo Box
9
Adding Items to Combo Box
10
Command Buttons
11
Adding Code to Buttons
12
RefEdit
13
Example Controls
14
Building a Web Browser
15
Data Table
Write a Comment
User Comments (0)
About PowerShow.com