I have a master spreadsheet with several sheets that allow the user to input their own custom data and they can then save the master including their custom inputs.
I have made some changes to the master that I want to now give to the users, but I don't want them to lose all of the custom things they input. The sheets are all protected, but the cells where the user can put their own data are not locked.
I want to have a macro that will copy the unprotected cells in specific, named sheets, and copy them to a second workbook, with the same sheet names and save the new file with the current date at the end of the filename. I will ultimately want a second macro to then upload the backed-up data back into the new file that I send to them. (I'll create a separate post for that if I need help.)
I have found code to do a few of these things, but don't know how to put them all together.
Code to open the new file (Target backup file for copying into): this works great for opening the initial empty backup file
Please Login or Register to view this content.
Then I have this, but don't know how to combine them to work together. I want to take out the specific path to open the backup and insert the above code to allow the user to go find the file and then it sets the wbTarget as the file that they opened.
I found this to save a file with the current date at the end, but I don't want to specify the path. I want it to go to the same folder where they originally chose the backup file to open:Please Login or Register to view this content.
Please Login or Register to view this content.
Any help to piece this together is appreciated. I posted so much because I didn't want anyone to think that I haven't tried to look this up myself. I am just not good with code and need help.
Bookmarks