I am trying to write an excel macro to generate a list of possible combinations.
I have a fixed series of values in different columns
A, B, C, D - each in it's own column.
I have a list of new values to replace with A, B, C or D and would like to generate all of the combinations.
List of new values i.e. 1, 2, 3, 4
I would get a total of 16 different combinations
For example,
1BCD
2BCD
3BCD
4BCD
A1CD
A2CD
A3CD
...
ABC1
ABC2
ABC3
ABC4
I'm not sure if this is clear but I would like to generate combinations by iterating through each column to generate the possible combinations with the new values inserted.