• formula to show whether sheet is protected or not (xp)

    Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » formula to show whether sheet is protected or not (xp)

    Author
    Topic
    #447590

    HI

    I know you can use the =INFO(xxx) for various info to be displayed in a cell, such as the path of the location of the workbook, its size etc…

    Is there any formula to show whethe a sheet is protected or not?

    Viewing 0 reply threads
    Author
    Replies
    • #1092075

      I don’t think there is a built-in function for this. You could create a custom function:

      Function SheetProtected(oCell As Range) As Boolean
      Application.Volatile
      SheetProtected = oCell.Parent.ProtectContents
      End Function

      Use like this:

      =SheetProtected(A1)

      if you want to know if the active sheet is protected, or

      =SheetProtected(OtherSheet!A1)

      if you want to know if OtherSheet is protected.

      • #1092076

        Thought not either – thanks for the idea of making a custom function thats better than the vba sub i did

    Viewing 0 reply threads
    Reply To: formula to show whether sheet is protected or not (xp)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: