+ Reply to Thread
Results 1 to 3 of 3

Protected Sheet Message

  1. #1
    Registered User
    Join Date
    10-13-2005
    Posts
    17

    Protected Sheet Message

    Excel has a default message that appears when someone tries to change a protected sheet. Can this message be edited to something more helpful.

    I know that I can do this using Data/Validation but this doesn't work on a Protected Sheet with all cells locked

  2. #2
    Dave Peterson
    Guest

    Re: Protected Sheet 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

    tlosgyl3 wrote:
    >
    > Excel has a default message that appears when someone tries to change a
    > protected sheet. Can this message be edited to something more helpful.
    >
    > I know that I can do this using Data/Validation but this doesn't work
    > on a Protected Sheet with all cells locked
    >
    > --
    > tlosgyl3
    > ------------------------------------------------------------------------
    > tlosgyl3's Profile: http://www.excelforum.com/member.php...o&userid=28074
    > View this thread: http://www.excelforum.com/showthread...hreadid=491017


    --

    Dave Peterson

  3. #3
    Registered User
    Join Date
    10-13-2005
    Posts
    17

    Thumbs up

    Many thanks I'll give it a go. New to macros too so thanks for the link.

    GD

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1