Sub pWord()
Dim userInput As String
userInput = InputBox("Please enter your password", "Password")
If Not userInput = "Password" Then
Exit Sub
End If
'' Rest of macro here
End Sub
Private Sub Workbook_Open()
If Environ("username") = "[COLOR=magenta]Trevor G[/COLOR]" Then
Sheets("[COLOR=magenta]Sheet1[/COLOR]").Shapes("[COLOR=magenta]Button 1[/COLOR]").Visible = True
Else
Sheets("[COLOR=magenta]Sheet1[/COLOR]").Shapes("[COLOR=magenta]Button 1[/COLOR]").Visible = False
End If
End Sub