Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default stringing macros together

I would like to have a second macro kick off after the first macro has
completed its tasks. How can I go about doing this? I could do a cut and
paste of the language for the second macro into the body of the first but am
assuming that there is a better way to do this.

Thoughts?

Thanks
--
sd
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,080
Default stringing macros together

As long as the macros are in the same module, you can just put the name of
the second macro on the last line of the first macro. That will call the
second macro.

Sub Macro1()
...
...
...
Macro2
End Sub

--

Vasant

"iamn94" wrote in message
...
I would like to have a second macro kick off after the first macro has
completed its tasks. How can I go about doing this? I could do a cut and
paste of the language for the second macro into the body of the first but

am
assuming that there is a better way to do this.

Thoughts?

Thanks
--
sd



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default stringing macros together

Sub Macro1()
' existing code

Macro2 ' starts macro2
End Sub

--
Regards,
Tom Ogilvy

"iamn94" wrote in message
...
I would like to have a second macro kick off after the first macro has
completed its tasks. How can I go about doing this? I could do a cut and
paste of the language for the second macro into the body of the first but

am
assuming that there is a better way to do this.

Thoughts?

Thanks
--
sd



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do i stop numbers stringing together ? AB Andy Bleese Excel Worksheet Functions 3 November 13th 06 05:00 PM
Stringing formulas again DavidB New Users to Excel 4 October 12th 06 07:02 AM
Stop text from stringing into next field when empty NothingButRomance Excel Worksheet Functions 7 May 17th 05 02:22 AM
Stop text from stringing into next field when empty NothingButRomance Excel Worksheet Functions 2 May 15th 05 05:32 PM
Stringing Subs Randal W. Hozeski Excel Programming 2 May 28th 04 04:05 PM


All times are GMT +1. The time now is 08:38 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"