Say I wrote a sub, but the only whay to call it, at this moment, is via a button.
How can I treat this sub as a macro (my knowledge of terminology is lacking here)? What I mean by this is, the button has to leave and it has to be called (eventually) by an external program.
Any ideas?