Microsoft Office Tutorials and References
In Depth Information
4.
In the Type section, select either Sub or Function depending on the type of procedure
you want.
5.
Type the procedure name in the Name box.
6.
Click OK. The editor creates the shell of the Sub or Function procedure, ready for you
to edit.
Procedures versus Macros
What is it that differentiates a macro procedure from a non-macro procedure? The main difference
is whether you intend the user to execute the procedure directly from the Macros dialog box. In
order to be considered a macro by Outlook and to be listed in the Macros dialog box, a procedure
must meet two criteria:
n It must not return a value — that is, it must be a Sub procedure and not a Function
procedure.
n It must not take any arguments.
FIGURE 23.1
Adding a Sub or Function procedure to a VBA module.
Search JabSto ::




Custom Search