My Excel VBA on Mac OS to save as PDF sometimes doesn\'t work.
It will give
\"Error while printing\"
then
Here is a guide on how you can do it: https://www.rondebruin.nl/mac/mac034.htm
What's important is that you can't save your file to a location that is selected by you.
It has to be saved to the folder Library/Group Containers/UBF8T346G9.Office
under the current user's home dir, so /Users/[current user]/Library/Group Containers/UBF8T346G9.Office
in most of the cases. If the folder is not there, you have to create it. (See the code example on the page linked above)
Kudos to Ron!
Please vote for this to be fixed by MS here: https://excel.uservoice.com/forums/304933-excel-for-mac/suggestions/36531559-fix-exportasfixedformat-method