You can use a different file extension like .cmd when exporting and then rename the file extension as .xlsx. This will prevent it from opening and then make it where it’s still an Excel file in the end.