I have created an excel spreadsheet to use as a template for documentation. I have locked the workbook from being changed, with the exception of the cells that need info entered. I then added a macro the counts up every time the file in opened, with the password protection being unlock then macro update and password protection enabled again. This is for my company's own internal document tracking. The problem I am running into is having the file auto save right after that macro executes and then have another macro disable the save feature only allowing the save as feature. I don't want the file to be accidentally overwritten.
also id like a macro to place a command button beside the file that can Save As with a standard excel format and uses cell data for file name if its possible.
This is what I have so far, I am very new to this.
Thank You in advance for your time.
also id like a macro to place a command button beside the file that can Save As with a standard excel format and uses cell data for file name if its possible.
This is what I have so far, I am very new to this.
Code:
Private Sub Workbook_Open()
ActiveSheet.Unprotect Password:="PassWord"
Sheets(1).[I9] = Sheets(1).[I9] + 1
ActiveSheet.Protect Password:="PassWord"
ActiveWorkbook.Save
End Sub
Thank You in advance for your time.