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

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)

pbt

Well-known Member
Joined
Oct 18, 2005
Messages
1,613
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.
 

OldGreg

New Member
Joined
Jan 1, 2014
Messages
17
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.
 

Watch MrExcel Video

Forum statistics

Threads
1,130,346
Messages
5,641,598
Members
417,225
Latest member
LukiiMaxim96

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
Top