confusion123
Active Member
- Joined
- Jul 27, 2014
- Messages
- 400
In this article,
Passing Objects: ByRef / ByVal
it is claimed objects can ONLY be passed ByRef, (the second comment in the article) but the third comment states the following:
so which is correct? Objects are passed ByRef or ByVal?
Thanks
Passing Objects: ByRef / ByVal
it is claimed objects can ONLY be passed ByRef, (the second comment in the article) but the third comment states the following:
Code:
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
'code
End Sub
so which is correct? Objects are passed ByRef or ByVal?
Thanks