Workbook.SaveAs() to different folder in Office 2011 for Mac

岁酱吖の 提交于 2019-12-12 02:26:40

问题


How to save xls to another folder?

When I use "/" in save path it replaces then with ":". When I try to use "\" it saves the file with "\" in file name.


回答1:


Use the Application.PathSeparator property and as an added bonus it'll be platform agnostic.

myPath = "myDirectory" & Application.PathSeparator & "mySubDirectory" & Application.PathSeparator & "myFileName"



来源:https://stackoverflow.com/questions/7198871/workbook-saveas-to-different-folder-in-office-2011-for-mac

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!