AlbertJoseph
New Member
- Joined
- Sep 21, 2018
- Messages
- 3
Hi everyone, im unable to open my workbook due to the code below
Private Sub Workbook_Open()
Dim user as string
User = Inputbox ("Please type your password")
If typename(user)="albert"
Msgbox "thank you"
Else
activeworkbook.Close
End sub
I tried a lot typing albert in the inputbox but still closing. Need your expertise on this. That workbook means a lot to me. Thank you!!
Private Sub Workbook_Open()
Dim user as string
User = Inputbox ("Please type your password")
If typename(user)="albert"
Msgbox "thank you"
Else
activeworkbook.Close
End sub
I tried a lot typing albert in the inputbox but still closing. Need your expertise on this. That workbook means a lot to me. Thank you!!