Manish Kumawat
Member
Dear Excel Ninja
I have a code to execute some tasks but unfortunately i have entered workbook.close property. Now i am unable to open the workbook for editing. Please help me code is pasted below for reference.
There is a private function which calls code "Manish" at the opening
>>> use code - tags <<<
I have a code to execute some tasks but unfortunately i have entered workbook.close property. Now i am unable to open the workbook for editing. Please help me code is pasted below for reference.
There is a private function which calls code "Manish" at the opening
>>> use code - tags <<<
Code:
Sub Manish()
Do Until user_input = "Manish" Or user_input = "123"
user_input = InputBox("Enter the password to use this Calculator", "Password Required")
Application.Wait (DateAdd("s", 1, Now()))
Workbook.Close Savechanges:=False
Loop
If user_input = "Manish" Or user_input = "123" Then MsgBox "Welcome " & UCase(Application.UserName) & " You May Proceed!!"
End Sub
Last edited by a moderator: