E
E.Z.
Hello,
Doe's "AddressOf" works with Excel macros?
I keep getting a Compile Error for using it.
"Invalid use of AddressOf operator"
This is the code:
Private Sub TestSub()
i = 0
End Sub
Private Function GetAddr(ByVal Addr As Long) As Long
GetAddr = Addr
End Function
Private Sub Test()
Dim Addr as Long
Addr = GetAddr (AddressOf TestSub)
End Sub
The error is for Test Sub
Tnx
Doe's "AddressOf" works with Excel macros?
I keep getting a Compile Error for using it.
"Invalid use of AddressOf operator"
This is the code:
Private Sub TestSub()
i = 0
End Sub
Private Function GetAddr(ByVal Addr As Long) As Long
GetAddr = Addr
End Function
Private Sub Test()
Dim Addr as Long
Addr = GetAddr (AddressOf TestSub)
End Sub
The error is for Test Sub
Tnx