I know I can change the SaveAs path using
application.GetSaveAsFilename initialfilename:="%userprofile%\Downloads"
but this results in the user being presented with the SaveAs dialog.
I want to change the SaveaS directory they are shown if/when they issue their own SaveAs (or Save) request.
Reason why:
This will only occur when the macros in the spreadsheet make the file ReadOnly (e.g. user has been inactive for a period of time - got that code working).
To then prevent the user from accidentally overwriting the *real* file or creating duplicates in that same network folder, I want to change the SaveAs location away from the current file's location path to one within their own profile but not actually issue any save command. It's unlikely they will want to save, and should be so, but I like to be as safe as I can and avoid an overwritten file, or a clutter of files where they shouldn't be.
Thanks for your help.
application.GetSaveAsFilename initialfilename:="%userprofile%\Downloads"
but this results in the user being presented with the SaveAs dialog.
I want to change the SaveaS directory they are shown if/when they issue their own SaveAs (or Save) request.
Reason why:
This will only occur when the macros in the spreadsheet make the file ReadOnly (e.g. user has been inactive for a period of time - got that code working).
To then prevent the user from accidentally overwriting the *real* file or creating duplicates in that same network folder, I want to change the SaveAs location away from the current file's location path to one within their own profile but not actually issue any save command. It's unlikely they will want to save, and should be so, but I like to be as safe as I can and avoid an overwritten file, or a clutter of files where they shouldn't be.
Thanks for your help.
Last edited: