Random password generator
First of all make a standard exe and make 2 text boxes name: Text1 Text2
Text1 - This will be where the user will type the length of the password
Text2 - Where the random password will display
Now crate a command button double click on it and enter this code-
Code
'Sets the variables
Dim Characters As String
Dim pwd As String
Dim tStore As String
'Stores which characters the generator will use.
Characters = "acbdefghijklmnopqrstuvqxyz1234567890"
For c = 1 To Text1.Text
Randomize
'Choose a random number
tStore = Rnd * 36
'Rounds the numbers
tStore = Round(tStore, 0)
'This prevents is causing an error if the random number was 0
If tStore = "0" Then
tStore = "2"
End If
'Gets the position of the character from the number (say the random number was 3 the letter would be c etc... )
pwd = pwd & Mid(Characters, tStore, 1)
Next
'After it's looped the length amount u set, It will display the password in text2.
Text2.Text = pwd
Very simple but it will help! Here is an example i did
6 letters
gu8sl4
and 8 letters
dj7f5cd3