Procedure Arguments
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

Procedure Arguments

In most cases, a procedure needs some information about the circumstances in which it has just been called. A procedure that performs repeated or shared tasks uses different information for each call. This information consists of variables, constants, and expressions that are passed to the procedure when it is called. Each value passed to a procedure is called an argument.

In This Section

Argument Data Type Declaration
Shows how to define data types of arguments.
Argument Passing ByVal and ByRef
Describes how to pass arguments ByVal and ByRef.
Argument Passing by Position and by Name
Describes how to pass arguments by position and by name.
Optional Arguments
Describes arguments that do not have to be supplied when a procedure is called.
Parameter Arrays
Discusses how to pass an indefinite number of arguments in a call.

Related Sections

Sub Procedures
Describes how to declare and call Sub procedures.
Function Procedures
Describes how to declare and call Function procedures.
Property Procedures
Describes how to declare and call Property procedures.
© 2016 Microsoft