I have a working VBA script that calls a Powershell script as follows:
Call Shell("powershell -executionpolicy bypass & """& ThisWorkbook.Path & "\FTP\FTP.ps1""")
The workbook path is H:\ABC\TSV\Forecast\Worksheets
If I move the workbook and the script to C:\Test it executes the script.
However, if I move the workbook and script to a synced location (SharePoint), it doesn't execute the script. Is the synced location's file path is too long? The file path is 72 characters (e.g. C:\Users\MyUsername\SharePointSite\SharePoint-Library\Forecast\Worksheets).
How do I get around this?