Forum Discussion

gymsmalta's avatar
gymsmalta
Copper Contributor
Apr 28, 2020
Solved

How can I disable the Warning Pop ups on protected cells to make the document more user friendly

How can I disable the Warning Pop ups on protected cells to make the document more user friendly?   All celled are protected and formulas hidden. Each time the protected cell is clicked on the warn...
  • JKPieterse's avatar
    Apr 28, 2020

    gymsmalta If you can use a bit of VBA, you can prevent that like so:

    - Right-click the sheet tab and choose "View Code"

    - Paste this code into the window:

    Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
        If Target.Cells(1, 1).Locked Then Cancel = True
    End Sub
    

    Save-as your file to the xlsm type (Excel workbook with macro's) 

Resources