"end sub" error

  • Thread starter Thread starter Vee
  • Start date Start date
V

Vee

I have written a macro that has been used multiple times without error. The
macro calls several macros. The first macro is executing properly but then
stops/errors on the "end sub" and does not continue with the remaining macros.
 
As Don said, post your code so we can see what you are working with.
However, I would note that if you have other code to execute, you should not
be running into the "End Sub" statement (there should only be one "End Sub"
statement and it should be the final line in your subroutine). If you have
it duplicated elsewhere in your code, perhaps you meant to use "Exit Sub"
instead.
 
Hi Rick, I believe that if the main macro is calling other macros then there
will be more than one "End Sub" statement. Again, without the OP posting
their code, it is difficult to guess what the problem might be.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top