View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
K1KKKA K1KKKA is offline
external usenet poster
 
Posts: 31
Default password userform

Sub Sunselect()
Dim PassStr As String
PassStr = InputBox("Enter Password Please", "My Password
Prompt")

If PassStr = "Manager" Then
Sheets("Sun").Select
Range("A11").Select
Else
MsgBox "Wrong Password Entered"
End If


End Sub


Have created the userform for the above task, but not having much luck
with the code for this

Any help would be appreciated