1. First step, open your visual basic editor by clicking Tools -> Macro -> Visual Basic Editor

2. Click Insert menu, and then select Module to open module window.

3. In the module window type following code:
Sub showHello()
MsgBox "I Love Excel!"
End Sub

4. To run your first macro, click Run -> Run Sub/UserForm or by pressing [F5] key.

5. "I Love Excel!" message box will appear in your screen.
Thank you for reading this article VBA Macro Excel Tutorial: Creating Your First VBA Macro Excel With URL https://x-tutorials.blogspot.com/2009/01/vba-macro-excel-tutorial-creating-your.html. Also a time to read the other articles.
0 comments:
Write your comment for this article VBA Macro Excel Tutorial: Creating Your First VBA Macro Excel above!