Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ByRef 

Specifies 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 modifier can be used in these contexts:

Declare Statement

Function Statement

Sub Statement

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2015 Microsoft