Sub is to long have to make another how do i make it start where it left off?

OldGreg

New Member
Joined
Jan 1, 2014
Messages
17
My First Macro/Sub is really long, So i divided it into 2. But how can i make the second Macro run right after the first?
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
What you are looking for is Calling a Macro From Within a Macro

Hopefully you have named the 2 macros with different names. So before the End Sub statement of the 1st macro put his line in
Code:
Call (name of you 2nd Macro)

You really don't need to put the word "Call". You can just put the name of your 2nd Macro.

If you want to post your "too long" code here, maybe somebody can shorten it for you. Just be sure to post between
Code:
 tags.  Use the # icon in the advanced features of the reply window.
 
Upvote 0
Code:
 I was curious how to do that. Thank you
Cool ill shorten it when im fully complete. Im very positive it could use some shortning.
 
Upvote 0

Forum statistics

Threads
1,214,925
Messages
6,122,298
Members
449,077
Latest member
Rkmenon

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top