Recording a macro within existing macro.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Let us assume that we have some existing VBA code we have either written or
recorded.

Now, we want to record some actions (generate additional code) at a specific
point in the existing code.

Can this be accomplished in any way other than recording a new macro and
then cutting and pasting the newly generated code into the existing code?

I apologize if this is off-topic; it seems to be more closely related to
programming than to anything else.

Thanks in advance for your advice.
--- BBQDad
 
It seems, for you, that may be the best approach. Or you could just call the
new macro
sub doit()
beginning of code
call newcode
rest of code
end sub
 
Back
Top