Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Replace Excel Message w/Custom Message

I have a worksheet where the cells are locked and password protected. When a
user tries to click in a cell, they get Excel's message the the sheet or cell
is protected go to the Tools menu... Is there a way I can replace this with
my own custom message? I have a button on the toolbar for the user to click
to lock and unlock the sheet so rather than tell them to go to the Tools
menu, I just want to tell them to click the button. Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Replace Excel Message w/Custom Message

Try this. I think It's what you want, well I hope so anyway!

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Locked = True Then
MsgBox "My Message", vbInformation, "My Message"
End If
End Sub

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
custom pop up message TraciLea Excel Discussion (Misc queries) 1 August 22nd 08 06:43 PM
Intercept/replace standard 'cell protected' message with my own message? KR Excel Programming 3 March 16th 06 02:31 PM
Error Message When Using Replace Susan Excel Programming 0 March 7th 06 02:01 PM
XPSP4, Excel 02, custom button to SEND MESSAGE wont stay on toolb RGAnderson Excel Discussion (Misc queries) 0 September 19th 05 08:14 PM
Use custom message Pat Excel Worksheet Functions 5 February 7th 05 12:19 AM


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