+ Reply to Thread
Results 1 to 2 of 2

Replace Excel Message w/Custom Message

  1. #1
    Kevin R
    Guest

    Replace Excel Message w/Custom Message

    I have a worksheet where the cells are locked and password protected. When a
    user tries to click in a cell, they get Excel's message the the sheet or cell
    is protected go to the Tools menu... Is there a way I can replace this with
    my own custom message? I have a button on the toolbar for the user to click
    to lock and unlock the sheet so rather than tell them to go to the Tools
    menu, I just want to tell them to click the button. Thanks.

  2. #2
    robertp@profund.com
    Guest

    Re: Replace Excel Message w/Custom Message

    Try this. I think It's what you want, well I hope so anyway!

    Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    If Target.Locked = True Then
    MsgBox "My Message", vbInformation, "My Message"
    End If
    End Sub


+ 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