Dim y As String
Dim used() As Boolean
y = ""
ReDim used(Len(inword))
For i = 1 To Len(inword)
repeat:
j = Int(Rnd() * Len(inword) + 1)
If used(j) Then GoTo repeat:
used(j) = True
y = y + Mid(inword, j, 1)
Next i
anagram = y
End Function
Sorry .... not a very bright answer (brain not in gear!): this will simply
scramble a word.
To create anagrams, you need (I guess) to look at all possiblities of the
letter combinations and then use the dictionary to validate them. And
anagrams can be formed from a phrase.
"themanse" <[email protected]>
wrote in message
I want to make anagrams of words in excel. How can I do this?
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.