+ Reply to Thread
Results 1 to 8 of 8

avoiding the excel pop up to inform a user that the sheet is protected.

  1. #1
    Forum Contributor
    Join Date
    05-20-2013
    Location
    Ann Arbor, MI
    MS-Off Ver
    Excel 2010
    Posts
    255

    avoiding the excel pop up to inform a user that the sheet is protected.

    instead of having excel pop up and give the user instrustions on how to unprotect a sheet, is there a way I can avoid this by using a message box?

    thanks!

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,360

    Re: avoiding the excel pop up to inform a user that the sheet is protected.

    You could probably use:

    Please Login or Register  to view this content.

    to trap the error. Then, if the err.number <> 0, display a message box.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    05-20-2013
    Location
    Ann Arbor, MI
    MS-Off Ver
    Excel 2010
    Posts
    255

    Re: avoiding the excel pop up to inform a user that the sheet is protected.

    the only problem I think I have with that is that it's not an error.

    its happening when a sheets is protected and you try to type in a certain cells and it pops up saying: "the cell or chart that you are trying to change is protected and therefore read-only. To modify a protected cell or chart, first remove protection using the Unprotect Sheet command (Review Tab, Changes Group). You may be prompted for a password."

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,360

    Re: avoiding the excel pop up to inform a user that the sheet is protected.

    It's an error in that you are trying to change a locked cell on a protected sheet. If you know that's what you want to do under program control, either unprotect the sheet in code yourself, or intercept the error and use your own message.

    Your choice.

    Regards, TMS

  5. #5
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: avoiding the excel pop up to inform a user that the sheet is protected.

    you cannot alter or prevent the built-in message if you have a user typing in protected cells
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  6. #6
    Forum Contributor
    Join Date
    05-20-2013
    Location
    Ann Arbor, MI
    MS-Off Ver
    Excel 2010
    Posts
    255

    Re: avoiding the excel pop up to inform a user that the sheet is protected.

    Yes,

    I tried what you told me, and nothing is happening. I'm still getting the same pop up message


    Please Login or Register  to view this content.
    Where should this code be located?

  7. #7
    Forum Contributor
    Join Date
    05-20-2013
    Location
    Ann Arbor, MI
    MS-Off Ver
    Excel 2010
    Posts
    255

    Re: avoiding the excel pop up to inform a user that the sheet is protected.

    Thanks JosephP.

  8. #8
    Registered User
    Join Date
    11-07-2013
    Location
    Techiman, Ghana
    MS-Off Ver
    Excel 2013
    Posts
    1

    Re: avoiding the excel pop up to inform a user that the sheet is protected.

    unchecked select locked cells under protect sheet dialog box.

+ 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