PC Review


Reply
Thread Tools Rate Thread

Change a default Excel warning

 
 
Jock
Guest
Posts: n/a
 
      12th Mar 2010
Hi,
Column D is locked when the worksheet is protected but the cells in that
column can be selected. If a user tries to enter text into any of the cells
in "D", the standard warning appears i.e. cell is protected and read only.
The cells can be double clicked which opens a user form into which the user
will enter the data. When that is closed, the data is transferred to the
locked cell by code.
My q is can the default warning message be replaced by one of mine for
instance informing the user to double click the cell?
Thanks.
--
Traa Dy Liooar

Jock
 
Reply With Quote
 
 
 
 
Mike H
Guest
Posts: n/a
 
      12th Mar 2010
Jock,

No you can't change these messages but you could limit the risk of them
being displayed by trapping column D being selected and then immediatly
display your own message.

Right click the sheet tab and view code and paste this in

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Column = 4 Then
MsgBox "Double click this cell to run a macro"
End If
End Sub
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Jock" wrote:

> Hi,
> Column D is locked when the worksheet is protected but the cells in that
> column can be selected. If a user tries to enter text into any of the cells
> in "D", the standard warning appears i.e. cell is protected and read only.
> The cells can be double clicked which opens a user form into which the user
> will enter the data. When that is closed, the data is transferred to the
> locked cell by code.
> My q is can the default warning message be replaced by one of mine for
> instance informing the user to double click the cell?
> Thanks.
> --
> Traa Dy Liooar
>
> Jock

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2007 Cell Format Change Bug Warning BobLfoot Microsoft Excel Crashes 9 24th Dec 2010 12:36 PM
How do I change Excel default number? PatrickR Microsoft Excel Misc 3 28th Jan 2010 05:09 PM
How can I change default row numbers in Excel ? =?Utf-8?B?WGNlbE1zdHI=?= Microsoft Excel Worksheet Functions 4 27th Aug 2006 06:52 PM
Re: How to change the format of the default blank Excel workbook (Excel 2000) Andy B Microsoft Excel Discussion 1 4th Aug 2003 01:37 AM
Re: How to change the format of the default blank Excel workbook (Excel 2000) Andy B Microsoft Excel Misc 1 4th Aug 2003 01:37 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:38 AM.