The ByRef keyword is used in these contexts:
Call Statement
Declare Statement
Function Statement
Property Get Statement
Property Let Statement
Property Set Statement
Sub Statement