Running a Macro from another Macro

  • Thread starter Thread starter Stan
  • Start date Start date
S

Stan

How do I run a macro from within another macro?

Example: I have a macro (Dount1) which is basically a *Do Until* loop
dependent on the results of a random number generator held in a macro called
*Genrand*.
I want to run Genrand from Dount1 until a certain random number sequence is
generated.

TIA
Stan
 
Sub Dount1
' your other code

Call GenRand

' your other code
End Sub

The 'Call' is optional
 

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

Back
Top