Why would your macro be called from within Excel? Aren’t you building an automation? What is your goal here?