Bonjour, je code une simple fonction produit de matrice en VBA mais ca me donne un resultat faux, je ne manipule pas encore tres bien les tableaux. Help.
Function produitmatrice(matrice1 As Variant, matrice2 As Variant) As Variant
Dim m, p As Variant
Dim i, j As Integer
m = matrice1
p = matrice2
a = UBound(m, 1)
b = UBound(p, 2)
c = UBound(m, 2)
ReDim summ(a, b)
'For i = 1 To a
'For j = 1 To b
'summ(i, j) = 0
'Next j
'Next i
For i = 1 To a
For j = 1 To b
For k = 1 To c
summ(i, j) = summ(i, j) + m(i, k) * p(k, j)
Next k