Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Change default for protected sheets | Excel Discussion (Misc queries) | |||
Error message with protected sheet | Excel Discussion (Misc queries) | |||
Change Message on Protected Worksheet | Excel Programming | |||
Getting protected cell error message when calculating (F9) | Excel Programming | |||
Excel error message in protected sheets | Excel Programming |