This situation comes into play with a menu,
In vba I had to make a sub for every menu item and when you are dealing with hardware there may be 80 subs that end up calling another function, however I could never figure out how to call a function passing it a string from a menu.
Perhaps the answers in this thread will work for this as well.