"David" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Many thanks in advance for any help.
> The letters "abcd" can be arranged in 4P4 = 24 ways. They can be spelt
> out on paper without difficulty (abcd, abdc, ... etc.) For larger
> words the number of permutations soon runs into billions... which
> brings me to my question:
> does anyone have any vba code to spell out each permutation on large
> words (12 letters and upwards)?
you also might want to check the worst hacking tools...
if you have a lot of time, make a file "filename.htm" with the content
____________________________________________________
<script>
abc = new
Array("a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r
","s","t","u","v","w","x","y","z");
end=12;
for (a=0;a<end;a++)
for (b=0;b<end;b++)
for (c=0;c<end;c++)
for (d=0;d<end;d++)
for (e=0;e<end;e++)
for (f=0;f<end;f++)
for (g=0;g<end;g++)
for (h=0;h<end;h++)
for (i=0;i<end;i++)
for (j=0;j<end;j++)
for (k=0;k<end;k++)
for (l=0;l<end;l++){
for (z=0;z<end;z++)
eval("document.write(abc["+abc[z]+"]);");
document.write("<br>");
}
</script>
____________________________________________________
and open it...
(if you want more/less than 12, add/remove some like these "for
(d=0;d<end;d++)", (continue the abc), and change "end" to the value you
want.
it WILL end in none responsive internet explorers and things like that :-)
.
.
=================================================================
Instructions for joining and leaving this list, remarks about the
problem of INAPPROPRIATE MESSAGES, and archives are available at:
. http://jse.stat.ncsu.edu/ .
=================================================================