Microsoft Office Tutorials and References
In Depth Information
In the Type section, select either Sub or Function depending on the type of procedure
you want.
Type the procedure name in the Name box.
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
n It must not take any arguments.
Adding a Sub or Function procedure to a VBA module.
Search JabSto ::

Custom Search