Table of contents
TOC
Collapse the table of content
Expand the table of content

Procedure declaration does not match description of event or procedure having same name

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Your class module has a procedure name that conflicts with the name of an event. This error has the following cause and solution:

  • A procedure has the same name as an event, but does not have the same signature (that is, the number and types of theparameters). This can occur if you do something such as add a new parameter to an event procedure. For example, if you modify the definition of a form's Form_Load event procedure as follows, this error will occur:
Sub Form_Load (MyParam As Integer) 
. . . 
End Sub
If the procedure isn't the event procedure corresponding to the event, change its name. If the procedure corresponds to the event, make the parameter list agree with that required by the event (if any).

For additional information, select the item in question and press F1 (in Windows) or HELP (on the Macintosh).

© 2018 Microsoft