A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
That's done the trick perfect!
You have my sincere thanks HansV!
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I'm using the following VBA code...
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("B:H")) Is Nothing Then
If Target.Count > 1 Then Exit Sub
Cells(Target.Row, "M").Value = Environ("username") & ", " & Format(Now, "yyyy/mm/dd hh:mm:ss")
End If
End Sub
It works fine if I leave the sheet unprotected. But when I protect the sheet in order to lock specific cells, I get a Debugger message box.
Do I need to alter the VBA code to allow it to work when the sheet is protected?
Many thanks.
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
That's done the trick perfect!
You have my sincere thanks HansV!
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