+ Reply to Thread
Results 1 to 2 of 2

DisplayAlert

  1. #1
    Forum Contributor
    Join Date
    10-04-2004
    MS-Off Ver
    2013
    Posts
    148

    DisplayAlert

    Hi!

    Is it possible to disable the warning message when trying to change a cell in a protected worksheet?

    Thank you!

  2. #2
    Dave Peterson
    Guest

    Re: DisplayAlert

    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


    pmguerra wrote:
    >
    > Hi!
    >
    > Is it possible to disable the warning message when trying to change a
    > cell in a protected worksheet?
    >
    > Thank you!
    >
    > --
    > pmguerra
    > ------------------------------------------------------------------------
    > pmguerra's Profile: http://www.excelforum.com/member.php...o&userid=14986
    > View this thread: http://www.excelforum.com/showthread...hreadid=562014


    --

    Dave Peterson

+ 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