Hi guys,
I wrote some VBA code to use an Userform.
I often use Windows but sometimes I have to run the Userform on Mac (with Office 2016).
I wrote the following code for the Userform. It works perfectly on Windows but I have problems when I run it on Mac.
The part of the code I have troubles is:
With Application
.quit
.displayAlerts=true
end with
I need for that code because I want Excel Application to close when I click a button on the Userform.
I hope you can help me.

I want to highlight that I asked the same question on another forum, but I didn't receive the answer I was looking for.
I cannot attach the link because I am a new user here.
I hope it is not Cross-Posting.

thank you