Recording a macro within existing macro.

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
 
D

Don Guillett

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
 

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