Save as pdf using Mac Excel VBA

前端 未结 1 1005
有刺的猬
有刺的猬 2021-01-27 19:39

My Excel VBA on Mac OS to save as PDF sometimes doesn\'t work.

It will give

\"Error while printing\"

then

相关标签:
1条回答
  • 2021-01-27 19:59

    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

    0 讨论(0)
提交回复
热议问题