VBA Getting started with VBA First Module and Hello World


Example

To start coding in the first place, you have to right click your VBA Project in the left list and add a new Module. Your first Hello-World Code could look like this:

Sub HelloWorld()
    MsgBox "Hello, World!"
End Sub

To test it, hit the Play-Button in your Toolbar or simply hit the F5 key. Congratulations! You've built your first own VBA Module.