Hi,
I was wondering if anyone can help me write permutations in VBA.
Suppose my inputs are A, B, C
I would like it to yield the following results each in a separate cell
ABC
ACB
BCA
BAC
CBA
CAB
I have used 3 For... Next loops however, this will not stretch if I have an input for A,B,C, D
Any suggestions / directions most welcome. I have attached what I have currently started.
Permutations.xlsm
Bookmarks