
Function GenString(ByRef length As Integer) As String
Randomize()
Dim allowableChars As String
allowableChars = "abcdefghijklmnopqrstuvwxyz0123456789"
Dim i As Integer
For i = 1 To length
GenString = GenString & Mid$(allowableChars, Int(Rnd() * Len(allowableChars) + 1), 1)
Next
End Function





