+ Reply to Thread
Results 1 to 2 of 2

Logic for creating Passwords.

  1. #1
    Registered User
    Join Date
    07-10-2014
    Location
    Japan
    MS-Off Ver
    2013
    Posts
    10

    Logic for creating Passwords.

    Hi all,

    I am trying to create a user form for entering passwords. There are two text box, first one- enter a 7 characters long, and must include exactly 1 digit ( cannot be more than 1 or 0), and also no space is allowed. The second text box will ask me to enter the password again, and check if the two attempts are the same.

    I believe for checking the 7 character, Len(test) can be used

    Not sure what to use for checking if there is exactly 1 digit ? In the case of more than 1 digits and 0 digit need to be handled separately?

    What about the space ( any function for check space in a string??)

    Any help is appreciated !! Thank you!!

  2. #2
    Registered User
    Join Date
    08-08-2013
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: Logic for creating Passwords.

    This is a fairly involved process where you will have quite a bit of code. Fortunately there are lots of functions in excel vba to handle comparisons, but where will you store the passwords and other operational items will need to be considered. Below is a good link to get you started if you haven't already found it.

    https://www.youtube.com/watch?v=E2xRf1hZKtY

    1. Your would need to add some comparison code and run through the entire password string.
    2. You will be using lots of if statements. to check conditions. Google excel vba comparison string, character of string etc.

    I know this is not the answer you were looking for, but something is better than nothing

    Best,

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Excel 2007 error with code for creating passwords
    By CMSS in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-04-2010, 11:52 AM
  2. logic for creating a Scheduling Template
    By udaya_pirate in forum Excel General
    Replies: 1
    Last Post: 03-28-2008, 10:29 PM
  3. creating two passwords
    By newguy23 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-29-2008, 05:06 PM
  4. Creating username and passwords
    By shannyshanhan in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-07-2006, 05:30 AM
  5. Creating random passwords
    By Tony in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-05-2005, 10:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1