GettingThere
New Member
- Joined
- Mar 10, 2009
- Messages
- 19
Hi guys - Seem to have a silly little barrier:
As Excel is hidden and the userform cannot be shown until the GetUserLogin Function is run the userform is being displayed without focus - how do I set focus to a userform in this way?!?!
Thanks for any feedback.
Cheers,
A.
Code:
Private Sub Workbook_Open()
If Application.Visible = True Then Application.Visible = False
Dim ssEIN As String
ssEIN = InputBox("Please enter your Employee ID number", _
"Welcome to the Admin Assisstant", "Please type your m or cx number")
Load frmLnD
GetUserLogin (ssEIN)
frmLnD.Show
'How do you ensure the form is activated?!?!
End Sub
As Excel is hidden and the userform cannot be shown until the GetUserLogin Function is run the userform is being displayed without focus - how do I set focus to a userform in this way?!?!
Thanks for any feedback.
Cheers,
A.