A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Thank you very much. Worked like a charm.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi
I'm entirely new to VBA coding I'm creating a my first macro. This file is designed to keep track of 100+ individuals historical data. all work will be completed on one sheet called "Master"
I want the macro to copy values from "Master" and rename the copy with the current date. The following macro does just that although without any protection.
Sub BackupMaster()
Worksheets("Master").Copy Before:=Worksheets("Master")
With ActiveSheet.UsedRange
.Value = .Value
End With
ActiveSheet.Name = Format(Date, "MMM-DD-YYYY")
End Sub
I am unsure how to set up error protection, any advice would be greatly appreciated.
I have 2 other Quality of Life features I would like but are entirely optional.
hhmmss in active sheet name
Password protect the new sheet in a manner information can be pulled from the sheet but not altered.
Thanks again.
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
Comments have been turned off. Learn more
Thank you very much. Worked like a charm.