Protected sheets - change error message
Hi all, I have protected a sheet in a workbook and somebody said there is piece of VBA that changes the default locked cells error message to on that I can define. Can this be done? If so does anybody have the VBA available. Thanking you very muc -- moglione ----------------------------------------------------------------------- moglione1's Profile: http://www.excelforum.com/member.php...fo&userid=2641 View this thread: http://www.excelforum.com/showthread.php?threadid=51147 |
Protected sheets - change error message
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 |
All times are GMT +1. The time now is 02:30 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com