Home |
Search |
Today's Posts |
#11
Posted to microsoft.public.excel.programming
|
|||
|
|||
Pairs, Triplets, Quads...
On Sun, 5 Jun 2005 at 12:19:51, Tushar Mehta (Tushar Mehta
) wrote: Actually, A..I doesn't 'blow it away.' The number of combinations for each possible combination is given by COMBIN(9,i) for i=1..9 and the largest value is 126. Yes sorry What must have happened is that you ran the code for multiple combinations one after the other. You have to clear the activesheet's cell(1,1)'s currentregion before running the main routine. Yes that was the problem Also, the main routine can be cleaned up a bit with Sub getGoing() 'Dim Arr(0 To 5) As String 'Arr(0) = "A": Arr(1) = "B": Arr(2) = "C" 'Arr(3) = "D": Arr(4) = "E": Arr(5) = "F" Dim Arr() As String Arr = Split("A,B,C,D,E,F,G,H,I", ",") doOneLevel "", 0, Arr(), ActiveSheet.Cells(1, 1) End Sub Though, now, it only works with VB6 (XL2000 or higher). That's what I have here :) -- Mike |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How to delete pairs | Excel Discussion (Misc queries) | |||
finding pairs | Excel Worksheet Functions | |||
Sorting triplets... | Excel Worksheet Functions | |||
Counting pairs | Excel Worksheet Functions | |||
Graph template with quads and band | Charts and Charting in Excel |