Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何将xls保存到另一个文件夹?
当我在保存路径中使用“/”时,它会替换为“:”。当我尝试使用“\”时,它会在文件名中使用“\”保存文件。
使用 Application.PathSeparator 属性,作为额外的好处,它将与平台无关。
myPath = "myDirectory" & Application.PathSeparator & "mySubDirectory" & Application.PathSeparator & "myFileName"