Save a Word Document as PDF Without Repeated File Access Prompts on Mac
Question details
Save a Word document as a PDF without repeatedly encountering the Grant File Access prompt during an automated export.

- Product
- Microsoft Word for Mac
- Device & OS
- macOS
- Scenario
- A Quick Access Toolbar command or VBA macro saves a Word document as a PDF.
- Observed behavior
- Word displays a Grant File Access dialog when the automated command attempts to access a file or save location.
Check the PDF output path in your macro and identify any other files it opens. The prompt may apply to the destination or to another file the macro accesses.
Save the PDF to a Word container folder
Use a folder inside Word's container as the macro's output location to reduce sandbox-related prompts.
macOS sandboxing controls automated file access, and changing the output folder may not eliminate every prompt. Available container locations and permissions can vary by Word and macOS version.
In Finder, select Go > Go to Folder, enter ~/Library/Containers/com.microsoft.Word/Data/Documents/, and press Return. If the folder is unavailable, check your Word installation before changing the macro.
In the Documents folder, choose File > New Folder and name it PDF Exports. Drag the folder to Finder's Favorites sidebar if you want quick access.
Open the VBA editor in Word and change the PDF destination in your save or ExportAsFixedFormat command to the PDF Exports folder. Use the full path for your Mac account and include a PDF filename.
Run the Quick Access Toolbar command or macro again. If a Grant File Access dialog appears, review the file or folder it identifies and grant access if you trust the request.

Export the PDF manually from Word
Use Word's save dialog when you need a PDF and do not need the macro to perform the export.
Export Word Documents to PDF with WPS Office
WPS Office is a free, lightweight alternative with a familiar interface for opening Word files and exporting them to PDF. Its format compatibility makes moving documents straightforward, though it does not fix Word's VBA sandbox permissions.

Frequently Asked Questions
Can I turn off the Grant File Access prompt in Word for Mac?
There is no general setting that reliably disables the prompt for all automated file access. Try changing the macro's PDF destination to a permitted folder and approve access when macOS requests it.
Why does the prompt still appear after I change the PDF folder?
The macro may also access the source document, a template, or another file outside its permitted locations. Check the path shown in the Grant File Access dialog to identify what needs permission.
Where can I find Word's container folder?
In Finder, choose Go > Go to Folder and enter ~/Library/Containers/com.microsoft.Word/Data/Documents/. The available path can vary with your Word and macOS installation.
Can I save a PDF without running the macro?
Yes. In Word, open the document, select File > Save As, and choose PDF as the file format. You may still need to approve access to the selected destination.




