Combine Macros & Create new book

Melimob

Active Member
Joined
Oct 16, 2011
Messages
396
Office Version
  1. 365
Hi

I've got multiple macros that I want to run in order with one button press.
Is it as simple as just copying all in one new macro?

I also then need to
[TABLE="width: 326"]
<colgroup><col></colgroup><tbody>[TR]
[TD]combine macros[/TD]
[/TR]
[TR]
[TD]create new book named xx[/TD]
[/TR]
[TR]
[TD]remove formulas from certain columns on each sheet[/TD]
[/TR]
[TR]
[TD] save where they want in a folder

Many thanks[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
.
You can combine all macros into one, starting with the first macro at the top, then the second macro next, etc. etc.

Or you can do this :

Code:
Sub FirstMacro()
'your code here
Call SecondMacro
End Sub

Sub SecondMacroo()
'your code here
Call ThirdMacro
End Sub

Sub ThirdMacroo()
'your code here
Call FourthMacro ... or ... delete this line and macros stop
End Sub
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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