title: VBA Code to hide cell values using Button
body: <p>I am currently using a VBA code that is :</p>
  
  <pre><code>Sub PasswordPointage()
         Dim Password As String
         Do Until Password = "123"
               Password = InputBox("plz enter password","Password","")
          If Password = "" Then
                     Exit Sub
          End If
         Loop
         Columns ("A:B").EntieColumn.Hidden = False
  End Sub
  </code></pre>
  
  <p>But the Problem is that I can't protect my sheet and make it work since I can't hide/unhide columns on protected sheets</p>
  
  <p>Is there any code to only Hide/Unhide Cell values ?? Or maybe color the values with White and make it black when the button is pressed </p>