我在 VBA 中开发了一个宏,它结合了代表 27 种不同组合的三个三元组足球池。27 表示最大可能的投注组合。我想修改列表以开发具有双重、固定、三重预测的系统;
例如,现在该程序仅适用于:
1st game 1 x 2
2nd game 1 x 2
3rd game 1 x 2
等于(3 * 3 * 3 = 27 possible combinations)
但如果预测如下:
1st game 1 x
2nd game 1
3rd game 1 x 2
等于(2 * 1 * 3 = 6 possible combinations)
现在:第一场比赛 1 x 2 ,第二场比赛 1 x 2 ,第三场比赛 1 x 2 ,等于(3 * 3 * 3 = 27 个组合)但如果预测应该如下:第一场比赛 1 x,第二场比赛 1 ,第三场比赛 x 2 ,等于 (2 * 1 * 3 = 6 个组合) 应该只打印有效列。
提前谢谢谁能帮我解决问题。
Sub Combination_Prediction()
Dim A As Integer
Dim B As Integer
Dim C As Integer
Dim Col1Sviluppo As Integer
Dim Row1Sviluppo As Integer
Col1Sviluppo = 10
Row1Sviluppo = 14
For C = 3 To 5
For B = 3 To 5
For A = 3 To 5
Contatore = Contatore + 1
Col1Sviluppo = Col1Sviluppo + 1
Cells(Row1Sviluppo + 1, Col1Sviluppo) = Cells(2, A)
Cells(Row1Sviluppo + 2, Col1Sviluppo) = Cells(3, B)
Cells(Row1Sviluppo + 3, Col1Sviluppo) = Cells(4, C)
Cells(10, 10) = Contatore & " colonne elaborate"
Next A
Next B
Next C
End Sub