Hi Everyone.
I have an Excel file with many sheets stored in my Onedrive. I would like to select a specific sheet of that Exel file and save it as a new Excel file in a shared folder of my Onedrive. I would like other users (with different Onedrive accounts) to access the file from the shared folder and to be able to use it. Also, I would like to do this often so the old shared file need to be replaced by the new one (containing extra data) instead of the code creating a new file.
I think this has 4 main challenges:
- Make the file accessible to users with different Onedrives from any device (no local path I think)
- Enable me to replace the existing file without the vba code asking " are you sure"
- Initially close any file that would contain the same name as my shared file so that any "saveas" function would work with no issue
Could someone kindly help me with the code that would do this? I am not a VBA expert but I can adapt an existing code.
Many thanks
I have an Excel file with many sheets stored in my Onedrive. I would like to select a specific sheet of that Exel file and save it as a new Excel file in a shared folder of my Onedrive. I would like other users (with different Onedrive accounts) to access the file from the shared folder and to be able to use it. Also, I would like to do this often so the old shared file need to be replaced by the new one (containing extra data) instead of the code creating a new file.
I think this has 4 main challenges:
- Make the file accessible to users with different Onedrives from any device (no local path I think)
- Enable me to replace the existing file without the vba code asking " are you sure"
- Initially close any file that would contain the same name as my shared file so that any "saveas" function would work with no issue
Could someone kindly help me with the code that would do this? I am not a VBA expert but I can adapt an existing code.
Many thanks