Expected procedure, not module
There is no procedure by this name in the current scope, but there is a module by this name. You can call a procedure, but not a module. This error has the following cause and solution:
- The name of a module is used as a procedure call. 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).
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: Under hela 2024 kommer vi att fasa ut GitHub-problem som feedbackmekanism för innehåll och ersätta det med ett nytt feedbacksystem. Mer information finns i:Skicka och visa feedback för