Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
password userform
A few small errors, and when selecting a range on a worksheet other than
current, it wants you to give sheet name as well. Also be aware that as is your password is case sensitive. Sub Sunselect() Dim PassStr As String PassStr = InputBox("Enter Password Please", "My Password Prompt ") If PassStr = "Manager" Then Sheets("Sun").Select Sheets("Sun").Range("A11").Select Else MsgBox "Wrong Password Entered" End If End Sub -- -- -John Please rate when your question is answered to help us and others know what is helpful. "K1KKKA" wrote in message ups.com... 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 |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
password userform
See any of your other posts for more replies.
K1KKKA wrote: 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 -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Password Userform | Excel Worksheet Functions | |||
Password userform activate | Excel Discussion (Misc queries) | |||
UserForm Password | Excel Discussion (Misc queries) | |||
Password Userform help !!!! | Excel Discussion (Misc queries) | |||
password userform | Excel Programming |