Hi,
I have a Macro spreadsheet which I am trying to share with other users via OneDrive.
Sharing the Spreadsheet is no problem but the other users cannot use my macro to export to OneDrive because they do not have access to the "my" username file path;
I have a Macro spreadsheet which I am trying to share with other users via OneDrive.
Sharing the Spreadsheet is no problem but the other users cannot use my macro to export to OneDrive because they do not have access to the "my" username file path;
Code:
Sheets("Export").Select
Sheets("Export").Copy
Sheets("Export").Range("T2").Value = counter
ActiveWorkbook.SaveAs Filename:= _
"C:\Users\ME\OneDrive - COMPANY\test\" & Format(Now(), "USER" & "ddmmyy") & "Batch" & counter & ".xlsx", FileFormat:= _
xlOpenXMLWorkbook, CreateBackup:=False[\CODE]
Is there a way around this? I am open to potential workarounds as long as it's VBA. I can't simply create a dropbox solution, or anything like that.
Thank you,
Gav