VB code for running a macro

R

rcc

Hi,

I'm trying to write a couple lines of code for a macro, call it Macro1. I
want Macro1 to be able to run Macro2. What's the code command for that?

Thanks,
rcc
 
J

Jim Cone

Sub Macro1
'somecode
Macro2
'optional additional code
End Sub
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)




"rcc"
wrote in message
Hi,
I'm trying to write a couple lines of code for a macro, call it Macro1. I
want Macro1 to be able to run Macro2. What's the code command for that?
Thanks,
rcc
 
D

Dave Peterson

call macro2

is one way.
Hi,

I'm trying to write a couple lines of code for a macro, call it Macro1. I
want Macro1 to be able to run Macro2. What's the code command for that?

Thanks,
rcc
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top