I'm attempting to set up a locked excel file to be used as a framework that has a command button with vba code attached that will save the edited file as a new file name. The code seems to work, insofar as it does time stamp and rename the file as I intend. The problem I'm encountering, is that it will only save what appears to be the base file out as the new name, but without any of the current edits showing on screen.
I suspect this is because the system call is indeed copying the file, but it's copying the unedited version already on the drive, not the temporary file loaded and edited on screen. However, I do not want to save the changes to the current master file, that's the whole point to having a locked version, I want the original to remain unchanged, and unchangeable(permanently anyway), but allow temporary edits that then save out to a time stamped secondary file.
Web searches are so far failing to answer the question I want to know, does the fso.copyfile command allow you to save the current state of the open excel file, or only the last saved version already on the drive?
I suspect this is because the system call is indeed copying the file, but it's copying the unedited version already on the drive, not the temporary file loaded and edited on screen. However, I do not want to save the changes to the current master file, that's the whole point to having a locked version, I want the original to remain unchanged, and unchangeable(permanently anyway), but allow temporary edits that then save out to a time stamped secondary file.
Web searches are so far failing to answer the question I want to know, does the fso.copyfile command allow you to save the current state of the open excel file, or only the last saved version already on the drive?