PDA

View Full Version : How to call a sub-procedure from a Macro?



prabhafriend
12-09-2010, 03:10 AM
How to call a sub-procedure(Not Function) from a Macro? Please don't ask why can't I use a function.

SoftwareMatt
12-09-2010, 05:54 AM
I think you can use OpenModule and open to a specifeid Sub

Imdabaum
12-10-2010, 07:39 AM
I'm pretty sure the sub also needs to be declared public.

prabhafriend
12-10-2010, 08:32 AM
No Imdabaum. Procedures are not listed in the Runcode action of the autoexec Macro either public or Sub.

hansup
12-10-2010, 09:59 AM
Create a function which calls your subroutine. Then have the macro execute the function.