Excel VBA 1.4

Hello World

1: Open the Visual Basic Editor

See How

2: Click Insert –> Module to add a new Module

3: Type the following code in the new module :

Sub hello()
      MsgBox “Hello World !”
End Sub

4: Click on the green “play” arrow (or press F5) in the Visual Basic toolbar to run the program:
5: Select the new created sub “hello” and click Run
6: Done, you should see the window above







Be the first to comment

Leave a Reply