LearnFast.Ninja

Excel macro tutorial Hello world

This tutorial will show you how easy is to use macro in Excel 2010. You will write your first program in Excel which is to tell the computer write Hello world! Before starting code the macros it is better to add a Developer tab to your Excel Ribbon, so the first two steps is about adding it.

Step 1: Right click the ribbon then click Customize the Ribbon.


Step 2: Check the Developer tab then click OK.


Step 3: Click the new Developer tab then click on Macros.
 

Step 4: Type Hello_World under Macro name then click Create.


Step 5: In the Sub type this command: MsgBox ("Hello world!") then click Run.


Result:


Tags

excel

macros macro hello-world sub