A family of Microsoft word processing software products for creating web, email, and print documents.
There are 2 issues with this code for a Mac. The minor issue is the path separator, which needs to be "/" instead of "".
Depending on your version of Office, the Dir function could be an issue. It's been fixed in Excel for Mac 2019 and Excel 365, but does not work in earlier versions. I haven't tested whether Dir is working in Word VBA. Here is Ron de Bruin's page about this issue: Dir function in macOS