Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Calling a Macro within a Macro

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 812
Default Calling a Macro within a Macro

On Feb 15, 3:08 pm, "William" 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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 812
Default Calling a Macro within a Macro

Call Macro1 from Macro2 as follows:

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

Hth,
Merjet


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
Calling a macro Otto Moehrbach Excel Programming 6 October 21st 06 10:14 PM
calling next macro Michelle Hanan Excel Programming 1 July 18th 06 06:17 PM
macro calling another macro + variables yo Excel Discussion (Misc queries) 2 April 5th 06 04:36 PM
calling a macro jhahes[_25_] Excel Programming 6 August 4th 05 12:22 AM
how to disable a macro by calling it from another macro paritoshmehta[_9_] Excel Programming 1 May 6th 04 07:24 PM


All times are GMT +1. The time now is 11:15 AM.

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"