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

Hi,
I am trying to find a way to suppress an excel message from appearing.
For example, if a user tries to change value in a protected cell he
gets the following message:
"The cell or chart you are trying to change is protected and therefore
read only....."

I want to know if there is a way to avoid this message from appearing.
Can I stop this message from appearing and show my own customized
message?

Thanks
Sadia.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,758
Default Suppressing an excel message

I don't think you can change that message, but maybe you could stop the users
from selecting those protected cells:


Option Explicit
Sub auto_open()
With Worksheets("sheet1")
.Protect Password:="hi"
.EnableSelection = xlUnlockedCells
End With
End Sub

Excel won't remember these settings after you close it and reopen the workbook
(that's why it's in auto_open).

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

Sadia wrote:

Hi,
I am trying to find a way to suppress an excel message from appearing.
For example, if a user tries to change value in a protected cell he
gets the following message:
"The cell or chart you are trying to change is protected and therefore
read only....."

I want to know if there is a way to avoid this message from appearing.
Can I stop this message from appearing and show my own customized
message?

Thanks
Sadia.


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Suppressing an excel message

Thankyou so much Dave, this little piece of code did the trick!
Sadia.

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
how can I keep excel from suppressing leading zeros as text regntx Excel Discussion (Misc queries) 3 June 13th 07 12:20 AM
Suppressing or trapping system msgs in excel 2k mike Excel Programming 1 November 17th 04 01:07 AM
suppressing error message Frank Kabel Excel Programming 1 May 28th 04 05:01 PM
suppressing error message JulieD Excel Programming 0 May 28th 04 03:02 PM
Suppressing links message Mark Excel Programming 2 February 2nd 04 02:09 PM


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