Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
AddressOf limitations 2002 vs. 97 | Excel Programming | |||
AddressOf Nightmare | Excel Programming | |||
AddressOf in Excel 2002 VBA? | Excel Programming | |||
usage "AddressOf TimerProc" in Excel97 | Excel Programming | |||
AddressOf / Windows API question | Excel Programming |