Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 114
Default Custom dialog box on protected sheet

Hi All

- I have a protected sheet.
- If a user attempts to type into a locked cell, I would like a custom dialog
box to appear, rather than the default ("the cell or chart you are trying to
change is protected and therefore read-only.....")
- I have successfully implemented this using the Worksheet_BeforeDoubleClick
or Workbook_SheetBeforeDoubleClick event, but can't work out how to achieve
this when the user attempts to type directly into a cell.

Any suggestions appreciated.

Thanks in advance.

Paul Martin
Melbourne, Australia
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 599
Default Custom dialog box on protected sheet

Paul

I don't know how to change the protection message, I don't think you can.
One kludgy work around is to use Data Validation for protection. If you
want to "lock" cell A1, you could put data validation in that cell that is

Custom - =Len(A1)=0

Then use the error alert tab on the validation dialog to create your own
message. You would have to remove the validation if you ever wanted to
change the cell. Also, you have to set up validation for every cell that
you want "locked", so a macro may be in order there.

--
Dick Kusleika
MVP - Excel
www.dicks-clicks.com
Post all replies to the newsgroup.

"Paul Martin" wrote in message
om...
Hi All

- I have a protected sheet.
- If a user attempts to type into a locked cell, I would like a custom

dialog
box to appear, rather than the default ("the cell or chart you are

trying to
change is protected and therefore read-only.....")
- I have successfully implemented this using the

Worksheet_BeforeDoubleClick
or Workbook_SheetBeforeDoubleClick event, but can't work out how to

achieve
this when the user attempts to type directly into a cell.

Any suggestions appreciated.

Thanks in advance.

Paul Martin
Melbourne, Australia



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 114
Default Custom dialog box on protected sheet

Dick

That's not quite the solution I'm looking for, though I can improvise to
make it at least a partial fix. Thanks for your idea, and if anyone has
another solution, that'd be great.

Regards

Paul Martin
Melbourne, Australia

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
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
Allow users of protected sheet to use macro involving custom filte Roady Excel Discussion (Misc queries) 3 June 17th 08 04:41 PM
Allow custom update button to work while sheet is protected mhng Excel Discussion (Misc queries) 0 July 14th 06 12:39 AM
Hiding columns, custom views, protected sheet Ian Excel Discussion (Misc queries) 0 May 4th 06 09:59 AM
custom views dialog box Wessel New Users to Excel 2 March 16th 06 05:03 PM
Custom View Dialog Box GLT Excel Discussion (Misc queries) 0 November 13th 05 03:20 PM


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