Working with macros in Outlook will take you to the next
level to understand the Outlook using macros. You can systematize the tasks
which you regularly perform and enhance capability of Outlook functions along
with your own planning.
You can simply say macro is a commands set which
automatically run in a sequence. In terms of MS Office you can say that macros
are small piece of VBA code, used to operate some of the office application. Each
Office application includes its own IDE (integrated development environment)
which allows you to write and run this code.
VBA is very easy to learn as its programming is simple to understand.
IDE helps to create a code which has no error and quickly find the error in the
code which you type.
If you want to learn about developing of complicated macros,
search by using internet. There are many sources from which you can learn VBA.
The following section will describe how to create macros.
Creating a Macro
- Start writing with macro by clicking on Tools and then select Macro.
- Choose the option “Macros”. And a Macros dialog box will appear on the screen.
- Now provide the name for Macro under Macro Name field. Like “Greetings From Outlook”.
- Then click on “Create” button.
Now Microsoft Visual Basic (IDE) appears on the screen. Have
a look on the name you put in the Macros dialog box which is resulted in code
added to the IDE. And you’ll see that a cursor has been blinking between sub
header and End Sub. Now type the code
given below:
MsgBox
(“Greetings From Outlook”)
From the toolbar click on the play button looking like a
green arrow pointing towards right, to view the output of your code. The output
of code will appear in a dialog box. Click OK button to return to IDE.
And save the macros by clicking the File menu and select Save.



No comments:
Post a Comment