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

Expected procedure, not variable

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

There is no procedure by this name in the currentscope, but there is a variable by this name. You can call a procedure, but not a variable. This error has the following cause and solution:

  • The name of a variable is used as a procedure call. The error may also be caused by misspelling the name of a valid procedure, because that can be misconstrued as an implicitly defined variable. Check the spelling of the procedure name, and make sure the procedure you are trying to call isn't private to another module.

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

© 2018 Microsoft