You can forbid selection in locked cells all together.
<table width="100%" border="1" bgcolor="White" style="filter
rogid:DXImageTransform.Microsoft.Gradient(endColorstr='#C0CFE2', startColorstr='#FFFFFF', gradientType='0');"><tr><TD><font size="2" face=Courier New> <font color="#0000A0">Private</font> <font color="#0000A0">Sub</font> Worksheet_Activate()
Me.EnableSelection = xlUnlockedCells
<font color="#0000A0">End</font> <font color="#0000A0">Sub</font>
</FONT></td></tr></table><button onclick='document.all("102620079273906").value=document.all("102620079273906").value.replace(/<br \/>\s\s/g,"");document.all("102620079273906").value=document.all("102620079273906").value.replace(/<br \/>/g,"");window.clipboardData.setData("Text",document.all("102620079273906").value);'>Copy to Clipboard</BUTTON><textarea style="position:absolute;visibility:hidden" name="102620079273906" wrap="virtual">
Private Sub Worksheet_Activate()
Me.EnableSelection = xlUnlockedCells
End Sub</textarea>