Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ByRef

The ByRef keyword indicates that an argument is passed in such a way that the called procedure can change the value of a variable underlying the argument in the calling code.

The ByRef keyword is used in these contexts:

Declare Statement

Function Statement

Sub Statement

See Also

Visual Basic Language Keywords | Argument Passing ByVal and ByRef

Show:
© 2015 Microsoft