With 26 letters and 10 digits you have 36 possible characters in each
position
So for 10 positions you will have 36^10 possible outcomes
This is about 4E+15 or a mere 1/1000 the age of the universe expressed in
seconds
Hope you have a fast CPU
And a big piece of paper on which to print the results
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email
<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hey! Here is the problem...I can't figure out how to make it so every
> possible combination of a series of letters (A-Z) and Numbers (0-9) is
> displayed I saw someones code to make it possible for three characters
> but I am looking to do it with like 10 characters...The code I saw was
> this...
>
> Sub comboo()
> Dim s(36) As String
> For i = 0 To 9
> s(i) = Chr(i + 48)
> Next
> For i = 10 To 36
> s(i) = Chr(i + 55)
> Next
>
>
> k = 1
> For i = 0 To 35
> For j = 0 To 35
> For l = 0 To 35
> Cells(k, "A").Value = s(i) & s(j) & s(l)
> k = k + 1
> Next
> Next
> Next
> End Sub
>
> Any ideas? Any help is much appreciated!!
>