Ok, I used RunCode, function: ExportToExcel, and removed the "private" from module2 (Sub ExportToExcel()).
But when I run the macro, it says it cannot find the function "ExportToExcel".
OH, how do I made the module a function?
OK, I changed module2 to: Function ExportToExcel().... End...