The AddressOf operator modifies an argument to pass the address of a function rather than passing the result of the function call. This error has the following cause and solution:
Only the names of Visual Basic procedures in a .bas module can be modified with AddressOf. You can't specify a class method.
The procedure definition must be in a module in the current project. Move the definition to a module in this project or include its current module in the project.
For additional information, select the item in question and press F1 (in Windows) or HELP (on the Macintosh).