Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 127
Default Turning Off Protection Notification

Excel 2003. I am producing a worksheet that is protected. However, I do not
want to see the warning about a protected cell everytime someone tries to
type in it. Instead, I simply want them not to be able to type. The message
I am getting and do NOT want is:

The cell or chart you are trying to change is protected and therefore
read-only

Again, how do I make it so that the message does not come up, but that
people simply cannot type in or change the sheet or protected cells? Thanks
for the help.
--
Dr. Doug Pruiett
Good News Jail & Prison Ministry
www.goodnewsjail.org
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Turning Off Protection Notification

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

Excel doesn't remember this setting--so the code uses the auto_open procedure to
set it each time the workbook opens.

Chaplain Doug wrote:

Excel 2003. I am producing a worksheet that is protected. However, I do not
want to see the warning about a protected cell everytime someone tries to
type in it. Instead, I simply want them not to be able to type. The message
I am getting and do NOT want is:

The cell or chart you are trying to change is protected and therefore
read-only

Again, how do I make it so that the message does not come up, but that
people simply cannot type in or change the sheet or protected cells? Thanks
for the help.
--
Dr. Doug Pruiett
Good News Jail & Prison Ministry
www.goodnewsjail.org


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 127
Default Turning Off Protection Notification

Thank you for the help Dave. God bless.
--
Dr. Doug Pruiett
Good News Jail & Prison Ministry
www.goodnewsjail.org


"Dave Peterson" wrote:

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

Excel doesn't remember this setting--so the code uses the auto_open procedure to
set it each time the workbook opens.

Chaplain Doug wrote:

Excel 2003. I am producing a worksheet that is protected. However, I do not
want to see the warning about a protected cell everytime someone tries to
type in it. Instead, I simply want them not to be able to type. The message
I am getting and do NOT want is:

The cell or chart you are trying to change is protected and therefore
read-only

Again, how do I make it so that the message does not come up, but that
people simply cannot type in or change the sheet or protected cells? Thanks
for the help.
--
Dr. Doug Pruiett
Good News Jail & Prison Ministry
www.goodnewsjail.org


--

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
Error when save as CSV with VBA password protection on [email protected] Excel Discussion (Misc queries) 0 August 1st 06 10:50 PM
No "File in use" notification [email protected] Excel Discussion (Misc queries) 0 May 25th 06 08:05 PM
VBA code error with Protection turned on - help please Fred Excel Discussion (Misc queries) 1 March 17th 06 04:06 PM
Three levels of protection in one worksheet Erik Jahre Excel Worksheet Functions 1 April 19th 05 11:27 PM
workbook protection John New Users to Excel 1 January 22nd 05 12:55 PM


All times are GMT +1. The time now is 02:13 AM.

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"