ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   error message (https://www.excelbanter.com/excel-programming/365031-error-message.html)

Rich

error message
 
is their a way to create your own error message

have a work book with protected cells , can i get the default message to
read something like

you arre not authorised to alter this data

Norman Jones

error message
 
Hi Rich,

I do not believe that the default message can be changed.


---
Regards,
Norman



"Rich" wrote in message
...
is their a way to create your own error message

have a work book with protected cells , can i get the default message to
read something like

you arre not authorised to alter this data




Rich

error message
 
didnt think so ,, but can always live in hope

thanks for your responce

"Norman Jones" wrote:

Hi Rich,

I do not believe that the default message can be changed.


---
Regards,
Norman



"Rich" wrote in message
...
is their a way to create your own error message

have a work book with protected cells , can i get the default message to
read something like

you arre not authorised to alter this data





Dave Peterson

error message
 
You can't change the message, but you can stop them from selecting locked cells
on a protected sheet.

Option Explicit
Sub auto_open()
Dim wks As Worksheet
Set wks = Worksheets("sheet1")
With wks
.Protect password:="hi"
.EnableSelection = xlUnlockedCells
End With
End Sub

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


Rich wrote:

is their a way to create your own error message

have a work book with protected cells , can i get the default message to
read something like

you arre not authorised to alter this data


--

Dave Peterson


All times are GMT +1. The time now is 06:08 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com