Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
As always, post YOUR code for comments. No mind readers here.
-- Don Guillett Microsoft MVP Excel SalesAid Software "Vee" wrote in message ... 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. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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. -- Rick (MVP - Excel) "Vee" wrote in message ... 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. |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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. "Rick Rothstein" wrote: 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. -- Rick (MVP - Excel) "Vee" wrote in message ... 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. |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Can you post an example of what you mean?
-- Rick (MVP - Excel) "JLGWhiz" wrote in message ... 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. "Rick Rothstein" wrote: 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. -- Rick (MVP - Excel) "Vee" wrote in message ... 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. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
What is Error "Method "Paste" of object "_Worksheet" failed? | Excel Programming | |||
"Subscript out of range" error for: Workbooks("Test1.xls").Save | Excel Programming | |||
"Clean Me" Macro is giving "#VALUE!" error in the Notes field. | Excel Programming | |||
Getting "compile error" "method or data member not found" on reinstall | Excel Programming |