Sub AddPasswords()
Dim sSheetPass As String
Dim sBookPass As String
sSheetPass = InputBox("What is the new password for the sheet?")
sBookPass = InputBox("What is the new password for the workbook?")
ActiveSheet.Protect Password:=sSheetPass
ThisWorkbook.Protect Password:=sBookPass
End Sub