Create Export to Excel function for web app