1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| Sub combi ()
Dim TbA1, TbA2, i As Integer, j As Integer, resCalcul 'As ??? à typer en fonction du résultat attendu
TbA1 = Range("Plage A1").Value
TbA2 = Range("Plage A2").Value
For i = LBound(TbA1) To UBound(TbA1)
For j = LBound(TbA2) To UBound(TbA2)
resCalcul = CalculeB1(TbA1(i), TbA2(j))
Call mamacro resCalcul
Next j
Next i
End Sub
Private Function CalculeB1(ValA1, ValA2) 'As ??? fonction à typer en fonction du résultat attendu
'ici tu places le code équivalant à la formule calculée en B1
'retour de la fonction :
'CalculeB1 =
End Function
Private Sub mamacro(result)
'ici le code de ta macro avec result qui remplace la valeur de ta cellule B1
End Sub |
Partager