Bonjour Marc
Je suppose qu'on a la même erreur décrite précédemment par Dan, à savoir si on utilise MAC ou pas.
Merci à Dan, s'il est en ligne, de confirmer cette correction.
If Application.OperatingSystem Like "Win*" Then
If TextBox12 <> "" Then
.Range("D" & ligne) = CDbl(Application.WorksheetFunction.Substitute(TextBox12, ".", ","))
Else
.Range("D" & ligne) = 0
End If
If TextBox13 <> "" Then
.Range("E" & ligne) = CDbl(Application.WorksheetFunction.Substitute(TextBox13, ".", ","))
Else
.Range("E" & ligne) = 0
End If
If TextBox9 <> "" Then
.Range("L" & ligne) = CDbl(Application.WorksheetFunction.Substitute(TextBox9, ".", ","))
End If
Else: 'cas pour MAC
If TextBox12 <> "" Then
.Range("D" & ligne) = CDbl(Application.WorksheetFunction.Substitute(TextBox12, ",", "."))
Else
.Range("D" & ligne) = 0
End If
If TextBox13 <> "" Then
.Range("E" & ligne) = CDbl(Application.WorksheetFunction.Substitute(TextBox13, ",", "."))
Else
.Range("E" & ligne) = 0
End If
If TextBox9 <> "" Then
.Range("L" & ligne) = CDbl(Application.WorksheetFunction.Substitute(TextBox9, ",", "."))
End If
End If
Voici la version 7ter avec cette correction.
Cdt
Henri