Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Stop message to UnProtect

I have a custom template. It has some protected cells.
If the user tries to change the proected cell, he gets the
default Excel message which explains how to Unprotect the
sheet. Since I will be removing Protection as an option
off the Menu used by this template, how do I also turn OFF
this message?

Thanks for any insight.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Stop message to UnProtect

Hi Lulu

Which Excel version ?

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Lulu" wrote in message ...
I have a custom template. It has some protected cells.
If the user tries to change the proected cell, he gets the
default Excel message which explains how to Unprotect the
sheet. Since I will be removing Protection as an option
off the Menu used by this template, how do I also turn OFF
this message?

Thanks for any insight.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 983
Default Stop message to UnProtect

Application.displayalerts = false

"Lulu" wrote:

I have a custom template. It has some protected cells.
If the user tries to change the proected cell, he gets the
default Excel message which explains how to Unprotect the
sheet. Since I will be removing Protection as an option
off the Menu used by this template, how do I also turn OFF
this message?

Thanks for any insight.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Stop message to UnProtect

If you protect the worksheet in code, you can make it so the user can't even
select those cells to change them:

With Worksheets("sheet1")
.Protect Password:="hi"
.EnableSelection = xlUnlockedCells
End With

Maybe this should go in the worksheet_activate subroutine -- behind that
worksheet.

But this setting isn't remember if you close the workbook. It has to be run at
least once when you reopen the workbook.

(I bet Ron's point was going to be that there's an option in xl2002+ under
tools|protect sheet for this.)



Lulu wrote:

I have a custom template. It has some protected cells.
If the user tries to change the proected cell, he gets the
default Excel message which explains how to Unprotect the
sheet. Since I will be removing Protection as an option
off the Menu used by this template, how do I also turn OFF
this message?

Thanks for any insight.


--

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
Stop displaying a message because of a formula Urgent Help Excel Worksheet Functions 2 April 10th 09 07:29 PM
#NAME? - is there a way to stop this error message? m@cr0 Excel Discussion (Misc queries) 3 July 23rd 08 03:17 PM
Stop error message Oggy Excel Discussion (Misc queries) 0 April 15th 07 04:26 PM
How to stop getting system message Prasad Vanka Excel Programming 1 May 21st 04 12:42 PM
stop enable macro message Dave Excel Programming 2 December 3rd 03 03:32 AM


All times are GMT +1. The time now is 01:18 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"