I have a workbook that does some analysis and outputs its results to a textfile in the same directory as the workbook is saved. I need to run this code on multiple computers so the local directory changes. Previously I just used
Application.ActiveWorkbook.Path
but since the autosave feature was enabled (which is useful, so I want to continue using) this returns the remote filepath in OneDrive.
How can I get the local filepath?