You sir are a genius! That solves the problem of calling a Main sub from a code module.
However now I have another issue, the HTTP downloader in the code module seems to expect the success/error response subs to be in the main code module. Oh well, back to the drawing board. I think perhaps I am trying to be too modular.