Fix Word for Mac VBA SaveAs File Paths and Permissions
Question details
The user needs Word VBA to save files to the intended macOS folder without path errors or unexpected permissions.

- Product
- Microsoft Word for Mac
- Device & OS
- macOS
- Scenario
- A VBA macro saves a Word document using SaveAs or SaveAs2, potentially to a path containing the tilde home-directory shortcut.
- Observed behavior
- A path beginning with ~/ may fail, while an explicit path works. Saved files may also have unexpected permissions, which can be affected by folder access or system-level permissions.
Identify the destination folder and its full path in Finder, then confirm that your macOS account can create a file there. In Word, open the document and VBA code you want to test.
Use an absolute path in the Word VBA SaveAs command
Use this approach when a path beginning with ~/ causes a SaveAs error.
In Finder, select the destination folder and choose File > Get Info. Use the location shown under Where to identify its full path, and replace any tilde with /Users/your-username.
In Word's VBA editor, replace the tilde path in the SaveAs or SaveAs2 command with an absolute path. For example: ActiveDocument.SaveAs2 FileName:="/Users/your-username/Test.docx", FileFormat:=wdFormatXMLDocument.
Run the macro from the VBA editor, approve any macOS access prompt, and open the destination folder in Finder to verify that the document was saved.

Check Word and macOS folder permissions
Use these checks if Word cannot access the destination or saved files have unexpected permissions.
Edit Word Documents on Mac with WPS Office
WPS Office is a free, lightweight alternative for working with Word documents on Mac. Its familiar interface and Microsoft Office format compatibility make it easy to move existing documents into a new workflow. It does not fix Word's VBA or macOS permission issues.

Frequently Asked Questions
Why does ~/Test.doc fail in Word for Mac VBA?
Word's SaveAs command may not expand the tilde as a shell would. Replace it with the full home-directory path, such as /Users/your-username/Test.doc, and use the matching Word file format.
Where can I check whether Word can access a folder?
Open System Settings > Privacy & Security > Files and Folders. If Microsoft Word and the relevant folder are listed, enable access. Also respond to any access prompt shown when Word saves the file.
What if Finder and other apps also have permission problems?
The issue may be with macOS or the destination folder rather than Word alone. In Finder, select the folder, choose File > Get Info, and inspect Sharing & Permissions.
Does folder access guarantee that a saved file has the expected permissions?
No. Folder access allows Word to use the location, but the permissions on a new file also depend on the parent folder and macOS settings. Check the saved file through Finder > File > Get Info.




