Consulting

Results 1 to 3 of 3

Thread: Disable alert message

  1. #1

    Disable alert message

    Hello all, can we disable "The cell or chart you are trying to change is protected..." alert?

    Any help/suggestion would be appreciated.

  2. #2
    Mac Moderator VBAX Guru mikerickson's Avatar
    Joined
    May 2007
    Location
    Davis CA
    Posts
    2,778
    As far as I know, that is one of the alerts that can't be supressed.
    Avoiding it would be the way to go.

    [VBA]If Not (Worksheets("mySheet").ProtectContents) Then
    Rem do stuff
    End If[/VBA]

  3. #3
    VBAX Guru Kenneth Hobs's Avatar
    Joined
    Nov 2005
    Location
    Tecumseh, OK
    Posts
    4,956
    Location
    If you mean changing by code, do something like this in the Thisworkbook's Open event.

    [VBA]Sheet1.Protect "ken", UserInterfaceOnly:=True[/VBA]

Posting Permissions

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