Write Your First VBA Program in Excel
Updated: Nov 9, 2019
Are you new to VBA? Visual Basic for Applications (VBA) is an implementation of Microsoft's event-driven programming language, Visual Basic 6. It's built into most Microsoft Office applications. Let's start to write your first program in Excel.
"Whether you want to uncover the secrets of the universe, or you just want to pursue a career in the 21st century, basic computer programming is an essential skill to learn." - Stephen Hawking
You might have already learned the #hotkeys from one of the posts in this website. Let's simply press Alt+F11 to open VBA editor.
Next, type the below codes in the Code Pane.
MsgBox "Hello from Excel!"
Well, now you can run your codes. Simply click the green Run button or press F5 and you will get a message from Microsoft Excel. Is it cool?