 |
| When you want to write some code, you
organise it into procedures. A procedure tells the application how
to perform a specific task. Use procedures to divide complex code
tasks into more manageable units. Each procedure is given a
name.
There are several types of procedures, but we will only use sub
procedures at this stage.
Procedures have start and end lines like this:
Sub Greeting()
End Sub
|
|
Our first program will be very simple - we will make
a pop up greeting box to say 'Hello'. This is the code we will use:
|
Sub Greeting()
msgBox("Hello")
End Sub
|
Making Pop Up Message Boxes Video
 |
1.
Make your own Welcome button and Pop up message to greet your
user.
2. Create
2 different buttons and link them to different pop up message
boxes.
|
|
 |
| You will need to write a different sub
procedure for each message. Each one will need to have a
different name. |
|