-->
Applies to: Excel for Mac | PowerPoint for Mac | Word for Mac | Office 2016 for Mac
Get started with Office 365 for free. Students and educators at eligible institutions can sign up for Office 365 Education for free, including Word, Excel, PowerPoint, OneNote, and now Microsoft Teams, plus additional classroom tools. Use your valid school email address to get started today. Install Office for Mac now Unmistakably Office, designed for Mac Get started quickly with new, modern versions of Word, Excel, PowerPoint, Outlook and OneNote—combining the familiarity of Office and the unique Mac features you love. Note: Any custom dictionary that you create in Word is used by other Office for Mac applications. Make sure that a document is open. If no document is open, the next step won't work. On the Word menu, click Preferences. Under Authoring and Proofing Tools, click Spelling and Grammar. Under Spelling, click Dictionaries.
Use the GrantAccessToMultipleFiles command to request access to multiple files at once in your Office 2016 for Mac solution.
Unlike VBA macros in Office for Mac 2011, VBA macros in Office 2016 for Mac don’t have access to external files by default. Because the Office 2016 for Mac apps are sandboxed, they do not have permission to access external files.
Existing macro file commands prompt the user for permission to access a file if the app doesn’t have access to it. This means that macros that access external files cannot run unattended. The user must approve file access the first time each file is referenced. You can use the GrantAccessToMultipleFiles command to minimize the number of prompts in order to improve the user experience.
GrantAccessToMultipleFiles command
Use the GrantAccessToMultipleFiles command to input an array of file paths and prompt the user for permission to access them.
Parameter | Description |
---|---|
fileArray | An array of POSIX file paths |
The command returns whether the user granted permission or not.
Return value | Description |
---|---|
True | The user grants permission to the files. |
False | The user denies permission to the files. |
Note
After the user grants permissions, the permissions are stored with the app. The user doesn’t need to grant permission to the file again.
Example
Support and feedback
Give User Access To Microsoft Word Mac Download
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.