You can't change the message, but you can stop them from selecting locked cells
on a protected sheet.
Option Explicit
Sub auto_open()
Dim wks As Worksheet
Set wks = Worksheets("sheet1")
With wks
.Protect password:="hi"
.EnableSelection = xlUnlockedCells
End With
End Sub
If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm
moglione1 wrote:
Hi all,
I have protected a sheet in a workbook and somebody said there is a
piece of VBA that changes the default locked cells error message to one
that I can define.
Can this be done? If so does anybody have the VBA available.
Thanking you very much
--
moglione1
------------------------------------------------------------------------
moglione1's Profile: http://www.excelforum.com/member.php...o&userid=26414
View this thread: http://www.excelforum.com/showthread...hreadid=511477
--
Dave Peterson