Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
vee vee is offline
external usenet poster
 
Posts: 12
Default "end sub" error

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default "end sub" error

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default "end sub" error

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default "end sub" error

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default "end sub" error

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
What is Error "Method "Paste" of object "_Worksheet" failed? vat Excel Programming 7 February 17th 06 08:05 PM
"Subscript out of range" error for: Workbooks("Test1.xls").Save Just12341234 Excel Programming 2 June 17th 05 03:16 PM
"Clean Me" Macro is giving "#VALUE!" error in the Notes field. Ryan Watkins Excel Programming 1 June 11th 05 12:25 AM
Getting "compile error" "method or data member not found" on reinstall Bp Excel Programming 1 April 23rd 04 04:42 PM


All times are GMT +1. The time now is 08:50 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"