Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a sheet with several protected sections. If an attempt is made to
change a protected cell the generic error box comes up notifying the user that the workbook is protected. I would like to display my own dialog box when a user tries to change a protected cell. Can this be done? How? Thanks in advance for the help. Mike |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
try something like this:
CODE If ActiveSheet.ProtectContents = False Then ' allow user actions End Else MsgBox "Please unprotect the sheet before changing cells", vbCritical + vbOKCancel, "Entry Error" exit sub End If <<<< END CODE HTH Philip "crazybass2" wrote: I have a sheet with several protected sections. If an attempt is made to change a protected cell the generic error box comes up notifying the user that the workbook is protected. I would like to display my own dialog box when a user tries to change a protected cell. Can this be done? How? Thanks in advance for the help. Mike |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Protected sheet - attempt to delete row = unmerged cells | Excel Discussion (Misc queries) | |||
handling calculated excel cell error messages | Excel Discussion (Misc queries) | |||
error in attempt to warn about macro security | Excel Programming | |||
need an error msge when I attempt to enter a duplicate value in a | Excel Discussion (Misc queries) | |||
Error handling with a handling routine | Excel Programming |