Make Folder if it not exist on Mac

Note : When you use VBA in Mac Excel 2016 or higher that is working with files and folders you will notice that it is possible that it will ask you permission to access the file or folder (Grant File Access Prompt), this is because of Apple’s sandbox requirements.This means that when you want to save/open files or check if it exists with VBA code the first time you will be prompted to allow access on the first attempt to access such a folder or file. If you want to avoid problems like this read this page : Problems with Apple’s sandbox requirements

Note
: on the page above there is example code to create a folder in the Office folder, check it out.

The macros below will make a folder in an existing folder if it not exist. Note: I use the special folder desktop in one example but you can use other special folders also. Check out this page for more info.
23/03/2024
Web design by Will Woodgate