ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Macros (https://www.excelbanter.com/excel-discussion-misc-queries/187102-macros.html)

mulehead

Macros
 
How do you run two macros in series. I have to do this because a macro
exceeded 64k and had to be split into two macros.

Gary''s Student

Macros
 
Sub InSeries()
Call Macro1
Call Macro2
End Sub
--
Gary''s Student - gsnu200785


"mulehead" wrote:

How do you run two macros in series. I have to do this because a macro
exceeded 64k and had to be split into two macros.


Per Jessen

Macros
 
Hi

Sub Macro1()
YourCode
Call Macro2
End Sub

Sub Macro2
Your Code
End Sub

Regards,
Per
"mulehead" skrev i meddelelsen
...
How do you run two macros in series. I have to do this because a macro
exceeded 64k and had to be split into two macros.



mulehead

Macros
 
Thank you Per, I will try this!

"Per Jessen" wrote:

Hi

Sub Macro1()
YourCode
Call Macro2
End Sub

Sub Macro2
Your Code
End Sub

Regards,
Per
"mulehead" skrev i meddelelsen
...
How do you run two macros in series. I have to do this because a macro
exceeded 64k and had to be split into two macros.




mulehead

Macros
 
Thanks Gary, I will try your suggestion!

"Gary''s Student" wrote:

Sub InSeries()
Call Macro1
Call Macro2
End Sub
--
Gary''s Student - gsnu200785


"mulehead" wrote:

How do you run two macros in series. I have to do this because a macro
exceeded 64k and had to be split into two macros.


mulehead

Macros
 
Gary, It works perfectly, thanks again.

"Gary''s Student" wrote:

Sub InSeries()
Call Macro1
Call Macro2
End Sub
--
Gary''s Student - gsnu200785


"mulehead" wrote:

How do you run two macros in series. I have to do this because a macro
exceeded 64k and had to be split into two macros.



All times are GMT +1. The time now is 09:04 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com