Function Calls in a variable?
Posted on 2005-04-06
Is it possible to put function or sub names into a variable and call them from that variable? Basically what I've done is created a module that contains code to access a recordset, call a function that returns a string which becomes the body of an Outlook email object, and send that email object to each user returned in the recordset. However, I want to be able to use that module to send more than one email, so I want to create more functions that will return different email messages. Since I'm extremely new at this and am teaching myself, I'm not sure how I'd go about changing which function I'm calling. I can post the code if it will help anyone see what I'm doing and help me out with it.