Craig_Moore
Board Regular
- Joined
- Dec 12, 2018
- Messages
- 64
- Office Version
- 2019
- Platform
- Windows
Hi All
i have the code below but my boss wants the input box to show ***** when he is putting in the code as he often has to do this in front of staff
please can some one help me
thanks
i have the code below but my boss wants the input box to show ***** when he is putting in the code as he often has to do this in front of staff
please can some one help me
thanks
VBA Code:
Private Sub UNPROTECT_ALL_SHEETS_Click()
Application.ScreenUpdating = False
On Error GoTo WrongPS
unpass = InputBox("Please enter the password:")
For Each Worksheet In ActiveWorkbook.worksheets
Worksheet.Unprotect Password:=unpass
Next
Exit Sub
WrongPS: MsgBox "Please check your password ."
Application.ScreenUpdating = True
End Sub