1 2 3 4 5 6 7 8 9 10 11 12 13
| TaFormule = sh.Cells(i, 26).Value
TaFormule = Replace(TaFormule, "y = ", "") ' => "2E-09x4 - 2E-05x3 + 0,052x2 - 42,153x + 346771"
TaFormule = Replace(TaFormule, " + ", " ") ' => "2E-09x4 - 2E-05x3 0,052x2 - 42,153x 346771"
TaFormule = Replace(TaFormule, " - ", " ") ' => "2E-09x4 2E-05x3 0,052x2 42,153x 346771"
TaFormule = Replace(TaFormule, "x4", "")
TaFormule = Replace(TaFormule, "x3", "")
TaFormule = Replace(TaFormule, "x2", "")
TaFormule = Replace(TaFormule, "x", "")
TableauDeTaFormule = Split(TaFormule, " ")
k = UBound(TableauDeTaFormule)
For j = 0 To k
Worksheets("j=1mm").Cells(i + j + 1, 26).Value = TableauDeTaFormule(j)
Next j |
Partager