Execute a Module Procedure with a Macro

  • Thread starter Thread starter EA
  • Start date Start date
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!
 
EA -

Try the RunCode macro action, and provide the function name in your code.
Your code should be public.
 
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)
 
Back
Top