Office for Mac Issues

Fix Word for Mac VBA SaveAs File Paths and Permissions

Maira MehtabMaira Mehtab Nov 22, 2026 868 views

Question details

The user needs Word VBA to save files to the intended macOS folder without path errors or unexpected permissions.

Fix Word for Mac VBA SaveAs File Paths and 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.
Before you start

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.

Solution 1Recommended

Use an absolute path in the Word VBA SaveAs command

Use this approach when a path beginning with ~/ causes a SaveAs error.

1
Find the full folder path

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.

2
Update the macro

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.

3
Run and verify

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.

Use an absolute path in the Word VBA SaveAs command
Match the file format: The example saves a .docx file. If you need a legacy .doc file, use the corresponding Word file format instead of wdFormatXMLDocument.
Free Microsoft Office alternative

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.

Open and edit Microsoft Word .doc and .docx documentsUse a familiar interface for everyday document editingWork with documents in a free, lightweight office suiteMove existing Word documents into WPS Office without starting over
microsoft office alternative - wps office

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.