Forum Discussion

tzsabre's avatar
tzsabre
Copper Contributor
Jan 31, 2023
Solved

MacOS issue VBA with Workbooks.Open

At work, we use Google Drive for Desktop and up until recently could use a script that included the line to find a file path in the computer was a Mac. ElseIf Dir("/Volumes/GoogleDrive/Shared drives...
  • JKPieterse's avatar
    Jan 31, 2023
    After opening a workbook from that location you could open the VBE and open theimmediate window and then write:
    ?ActiveWorkbook.Path
    and hit Enter. That should give you the location.

Resources