Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change default for protected sheets carrera Excel Discussion (Misc queries) 3 January 10th 08 07:21 PM
Error message with protected sheet HRman Excel Discussion (Misc queries) 1 November 28th 05 06:59 PM
Change Message on Protected Worksheet Phil Hageman[_4_] Excel Programming 1 March 29th 05 08:43 PM
Getting protected cell error message when calculating (F9) Ellis Horowitz Excel Programming 1 May 20th 04 02:26 AM
Excel error message in protected sheets Rogio Excel Programming 0 October 29th 03 11:24 PM


All times are GMT +1. The time now is 03:15 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"