Might be hard to explain but I will try. So I'm doing combinations that consist of 5 things. Now the combinations can easily be done with for and next. BUT I want to write down each different combination in a different column. Now I can't figure this out. Every time an item changes, I want the column to be changed to the next one. My current code looks basically like this:
Now how could I make the code change the column variable each time a "next" command is given?
Code:
For item1 = 2 To itemarv
For item2 = 2 To itemarv
For item3 = 2 To itemarv
For item4 = 2 To itemarv
For item5 = 2 To itemarv
Next item5
Next item4
Next item3
Next item2
Next item1