Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
thrava
 
Posts: n/a
Default Macro inside another macro?

I like to refer to another macro within another macro.

Is this possible?
Does this work?

sub macro1()
....
....

sub Macro2()
....
....
end sub

.....
.....
end sub
?

  #2   Report Post  
NeetYam
 
Posts: n/a
Default

Yes this does work.



-----Original Message-----
I like to refer to another macro within another macro.

Is this possible?
Does this work?

sub macro1()
....
....

sub Macro2()
....
....
end sub

.....
.....
end sub
?

.

  #3   Report Post  
thrava
 
Posts: n/a
Default

thank you


-----Original Message-----
Yes this does work.



-----Original Message-----
I like to refer to another macro within another macro.

Is this possible?
Does this work?

sub macro1()
....
....

sub Macro2()
....
....
end sub

.....
.....
end sub
?

.

.

  #4   Report Post  
Don Guillett
 
Posts: n/a
Default

Not like that. You can have macro code within a macro or call another macro
sub macro1
call macro2
end sub

or
sub macro1
macro2 code here
end sub


--
Don Guillett
SalesAid Software

"thrava" wrote in message
...
I like to refer to another macro within another macro.

Is this possible?
Does this work?

sub macro1()
...
...

sub Macro2()
....
....
end sub

....
....
end sub
?



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
Can't get simple macro to run Abi Excel Worksheet Functions 5 January 12th 05 07:37 PM
Help with macro formula and variable Huge project Excel Worksheet Functions 0 December 28th 04 01:27 AM
Macro and If Statement SATB Excel Discussion (Misc queries) 2 December 3rd 04 04:46 PM
Macro Formula revision? Mark Excel Worksheet Functions 1 November 28th 04 01:43 AM
Macro for multiple charts JS Excel Worksheet Functions 1 November 19th 04 03:44 AM


All times are GMT +1. The time now is 01:19 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"