I've cobbled this together from a few different references and it's still not working quite right.
1) Backup an Excel workbook when it is opened automatically.
--seems to work with Active.workbook.SaveCopyAs
2) Prevent the backup workbooks from making copies of themselves if they are opened.
--Gives an error; seems like the IF statement isn't working.
3) Also seeking a way to remove the password protection from the original file when a backup is made. The backups do not need to be password protected.
--I know ActiveWorkbook.SaveAs has an option to set the password to "". However, using the Save.As method renames the original file and saves it to the backup location, which is not what I'm going for. Is there some workaround to make SaveAs work more like SaveCopyAs?
The backup file path is N:\Receipts\Receipt Tracker Backup\
My current code:
Bookmarks