Execute a Module Procedure with a Macro

E

EA

Is there a way to execute a code in a module using a macro? I've used the
'OpenModule' action but it seems to only open the module instead of
executing the command.

Thanks!
 
D

Daryl S

EA -

Try the RunCode macro action, and provide the function name in your code.
Your code should be public.
 
D

Douglas J. Steele

Just to be explicit, you cannot run Subs from macros, only Functions. If
you're trying to run a Sub, change it to a Function (it doesn't matter that
it doesn't return any value)
 

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