Sub hello() MsgBox "Hello World !" End Sub
To obtain :
Click on the green “play” arrow (or press F5) in the Visual Basic toolbar to run the program:
Select the new created sub "hello" and click Run :
Run
Done, your should see the following window: