elerium115
elerium115

Reputation: 21

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

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.

Upvotes: 0

Views: 1424

Answers (1)

Banjoe
Banjoe

Reputation: 1768

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

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

Upvotes: 2

Related Questions