I have the below code, it works fine, but if someone can help me change it to use upper case letters or lower case letter for password please, here is the code
![]()
Please Login or Register to view this content.
I have the below code, it works fine, but if someone can help me change it to use upper case letters or lower case letter for password please, here is the code
![]()
Please Login or Register to view this content.
Just replace this line in both the places.
With![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
Mark your thread as Solved
If the suggestion helps you, then Click *below to Add Reputation
It worked for the first sub, but for the second sub, I got the debugger pop up highlighting the below line:
![]()
Please Login or Register to view this content.
How about this ?
![]()
Please Login or Register to view this content.
Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.
THAT WORKED! thank you bakerman2 and Sixthsense both of you. Rep added and thread will be marked solved.
Bakerman2 could you explain why I need to add the 'LCase' , why was it necessary to add that in my macro?
i tried it "UCase()" it don't work, but it worked with "LCase", thank you both !!
The original password playtoy2 is lowercase hence it needs to be lower case when presented
could be replaced with![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
Thanks for rep+. Much appreciated.
davsth has given you the short version, I'll present the long one.
When using this
you can enter the password in uppercase or lowercase in the userform. They will both be converted to uppercase (temporarily) when performing the check.![]()
Please Login or Register to view this content.
But pwd will hold exactly what you've entered in the userform.
Suppose you have set the sheet password in lowercase and pwd is uppercase in userform there's a difference so we convert the userform value to lowercase to match sheet password.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks