PC Review


Reply
Thread Tools Rate Thread

Calling a Macro within a Macro

 
 
William
Guest
Posts: n/a
 
      15th Feb 2007
I recently received 2 excellant VBA macros from this group. I want to
select one of these macros to run within an existing macro. How do I
merge or integrate a macro into existing code?
Help will be greatly appreciated. Wm

 
Reply With Quote
 
 
 
 
merjet
Guest
Posts: n/a
 
      15th Feb 2007
On Feb 15, 3:08 pm, "William" <swan...@gmail.com> wrote:
> I recently received 2 excellant VBA macros from this group. I want to
> select one of these macros to run within an existing macro. How do I
> merge or integrate a macro into existing code?
> Help will be greatly appreciated. Wm



 
Reply With Quote
 
merjet
Guest
Posts: n/a
 
      15th Feb 2007
Call Macro1 from Macro2 as follows:

Sub Macro2()
'optional code
Macro1
'optional code
End Sub

Hth,
Merjet


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling a public Macro from a Private Macro =?Utf-8?B?dGhld2l6eg==?= Microsoft Excel Programming 6 2nd Nov 2007 10:23 PM
macro calling another macro + variables =?Utf-8?B?eW8=?= Microsoft Excel Misc 2 5th Apr 2006 04:36 PM
Calling on a macro within a macro! mellowe Microsoft Excel Discussion 13 1st Feb 2006 05:00 PM
Macro calling another Macro William Benson Microsoft Excel Programming 2 7th Jun 2005 01:43 PM
how to disable a macro by calling it from another macro paritoshmehta Microsoft Excel Programming 5 6th May 2004 07:24 PM


Features
 

Advertising
 

Newsgroups
 


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