View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
Lars-Åke Aspelin[_2_] Lars-Åke Aspelin[_2_] is offline
external usenet poster
 
Posts: 913
Default Code to stop a Macro


Sorry, but too much guessing what you really want to accomplish is
needed.
Why do you want to stop the macro anyway?
From you problem description the only information given is that in
some months you have to update 8 sheets and in some months you have to
update 12 sheets. That can be solved using IF statements.

Please give a more detailed description of your problem.

Lars-Åke

On Fri, 2 Jan 2009 09:55:02 -0800, Nikki
wrote:

but what if I want it to resume after exiting?

"Lars-Åke Aspelin" wrote:

On Fri, 2 Jan 2009 09:40:01 -0800, Nikki
wrote:

Can anyone please tell me what code would work to stop a Macro when updating
multiple sheets? I have about 12 sheets and only need 8 updated every month;
the other 4 are only required to be updated every 3 months.

Thanks


Try this:

Exit Sub

Hope this helps / Lars-Åke