why don't you just make a dll and then call the sub from the dll.